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

为什么对 fly 实例解构赋值之后,get 等请求方法都无法使用 #280

Open
abitwhy opened this issue Jan 5, 2022 · 0 comments

Comments

@abitwhy
Copy link

abitwhy commented Jan 5, 2022

在使用 npm 安装的 fly 的 vue 项目中发生的。

与解构类似,ES Module 导出也会导致该问题。
查看报错栈,发现 fly.js 内部使用了上下文:

fly/src/fly.js

Line 353 in fced928

return this.request(url, data, utils.merge({method: e}, option))

有改进以支持解构赋值和 ES Module 导出的可能吗?

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

1 participant