refactor(Uploader): refactor with composition api

This commit is contained in:
chenjiahan
2020-09-15 11:58:40 +08:00
parent c8d573cbe7
commit 595b062c34
2 changed files with 177 additions and 193 deletions

View File

@@ -8,7 +8,7 @@ export function toArray<T>(item: T | T[]): T[] {
return [item];
}
export function readFile(file: File, resultType: ResultType) {
export function readFileContent(file: File, resultType: ResultType) {
return new Promise((resolve) => {
if (resultType === 'file') {
resolve();