这里log的时候数据是对的
这里就不对了
promise 要用then接收
getProvince().then(data => {
this.provinces = data
})
或者await async
async function test() {
this.provinces = await getProvince();
}
async实现:
async function test() {
this.provinces = await getProvince();
}