async handleSearch() {
let res = await this.service.findPage(this.searchInfo)
}
1、await后面跟一个function函数,否则babel会报错
(‘await’ is only allowed within async functions)
2、
async handleSearch() {
let res = await this.service.findPage(this.searchInfo)
}
1、await后面跟一个function函数,否则babel会报错
(‘await’ is only allowed within async functions)
2、