From 92989ed819cabc2fc5d1c1ca5c515cfd2f0a9519 Mon Sep 17 00:00:00 2001 From: zhangxinze Date: Tue, 22 Nov 2022 00:20:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(upload):=20requestMethod=E8=BF=94=E5=9B=9EP?= =?UTF-8?q?romise?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/upload/upload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upload/upload.ts b/src/upload/upload.ts index 7bedb51e1..fd33cb05f 100644 --- a/src/upload/upload.ts +++ b/src/upload/upload.ts @@ -86,7 +86,7 @@ export default class Upload extends SuperComponent { // 开始调用上传函数 const task = this.data.requestMethod(files); if (task instanceof Promise) { - return task; + return task.then(files => resolve(files)); } resolve({}); });