Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否promise对象的判断函数不正确 #1108

Open
xiblying opened this issue Nov 12, 2024 · 1 comment
Open

是否promise对象的判断函数不正确 #1108

xiblying opened this issue Nov 12, 2024 · 1 comment

Comments

@xiblying
Copy link

版本

2.0.38

转载链接

uviewui.com

重现步骤

/libs/function/test.js 第228行 "return object(value) && func(value.then) && func(value.catch)" 中 object(value) 如果是value为promise也返回false;实际字符串判断应为 "[object Promise]"

期望的结果是什么?

true

实际的结果是什么?

false

@chenhu2077
Copy link

同样的问题,导致无法拦截上传文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants