-
Notifications
You must be signed in to change notification settings - Fork 315
Open
Labels
🐞 bugSomething isn't workingSomething isn't working🧐 unconfirmedwaiting to be confirmedwaiting to be confirmed
Description
tdesign-miniprogram 版本
能
重现链接
No response
重现步骤
在进行使用request-method上传文件时,返回类型如果是Promise,这触发下方return i;导致e永远不会执行,新建的Promise永远是pending,需要将e变量传入到requestMethod方法里
uploadFiles(t) {
return new Promise(e => {
const i = this.data.requestMethod(t);
if (i instanceof Promise) return i;
e({})
})
},
期望结果
No response
实际结果
No response
基础库版本
No response
补充说明
希望将uploadFiles修改为:
uploadFiles(t) {
return new Promise((e,f) => {
const i = this.data.requestMethod(t,e,f);
if (i instanceof Promise) return i;
e({})
})
},
Metadata
Metadata
Assignees
Labels
🐞 bugSomething isn't workingSomething isn't working🧐 unconfirmedwaiting to be confirmedwaiting to be confirmed