在methods里用async定义了一个方法 导致终端报错 但是代码能执行 不知道是不是eslint的问题
async toPay() {
this.$ba.trackEvent(this.channel,'E')
let bindResult = await this.bindPhone()
},
在methods里用async定义了一个方法 导致终端报错 但是代码能执行 不知道是不是eslint的问题
async toPay() {
this.$ba.trackEvent(this.channel,'E')
let bindResult = await this.bindPhone()
},
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答4.7k 阅读✓ 已解决
4 回答4.3k 阅读✓ 已解决
4 回答1.8k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
2 回答2.5k 阅读✓ 已解决
应该是你现在的babel配置不支持 async 和 await转换