TA贡献1779条经验 获得超6个赞
promise 要用then接收
getProvince().then(data => { this.provinces = data })
或者await async
async function test() { this.provinces = await getProvince(); }
TA贡献1818条经验 获得超3个赞
async实现:async function test() {this.provinces = await getProvince();}
举报