这里log的时候数据是对的这里就不对了
2 回答

哆啦的时光机
TA贡献1779条经验 获得超6个赞
promise 要用then接收
getProvince().then(data => { this.provinces = data })
或者await async
async function test() { this.provinces = await getProvince(); }
没有找到匹配的内容?试试慕课网站内搜索吧
- 2 回答
- 0 关注
- 15920 浏览
添加回答
举报
0/150
提交
取消