Skip to content

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

@abitwhy

Description

@abitwhy

在使用 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 导出的可能吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions