vue async await 终端报错

在methods里用async定义了一个方法 导致终端报错 但是代码能执行 不知道是不是eslint的问题

clipboard.png

async toPay() {

       this.$ba.trackEvent(this.channel,'E')      
       let bindResult = await this.bindPhone()

},

阅读 4.8k
2 个回答

应该是你现在的babel配置不支持 async 和 await转换

eslint里把asyncFunction禁用了?

推荐问题