const res = getTaskItems({});
if (res.code === 0) {
this.taskItem = res.data;
}
getTaskItems({}).then(res => {
console.log(res.data);
})
Vue获取Promise对象里面的值问题
2023-01-22 80 0 0
const res = getTaskItems({});
if (res.code === 0) {
this.taskItem = res.data;
}
getTaskItems({}).then(res => {
console.log(res.data);
})
原文链接: https://blog.csdn.net/qq_36811160/article/details/108256665
本文链接: https://www.10k.cn/article/40234.html
版权声明: 本文章内容采集或者整合于互联网,仅供学习使用,如若本站内容侵犯了您的合法权益,请及时联系我们删除。