前天获取到的查询结果变成了promise<pending>怎么解决啊

图片说明

这里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();
}