在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()
},
9 回答1.7k 阅读✓ 已解决
6 回答1.5k 阅读
3 回答1.4k 阅读✓ 已解决
4 回答1.3k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
3 回答1.1k 阅读
3 回答1.3k 阅读✓ 已解决
应该是你现在的babel配置不支持 async 和 await转换