feat: 优化在微信小程序中接口返回的错误信息 会被uni.hideLoading取消展示错误信息问题

This commit is contained in:
学习很差啦
2023-04-11 18:41:34 +08:00
parent c070ed01f7
commit 2bdb8682e1
38 changed files with 70 additions and 58 deletions

View File

@@ -361,7 +361,7 @@ export default {
if (this.order.deliveryMethod === 'LOGISTICS') {
this.loadLogistics(sn)
}
uni.hideLoading();
if (this.$store.state.isShowToast){ uni.hideLoading() };
});
},
@@ -413,7 +413,7 @@ export default {
});
setTimeout(() => {
this.navList[this.tabCurrentIndex].orderList.splice(index, 1);
uni.hideLoading();
if (this.$store.state.isShowToast){ uni.hideLoading() };
}, 600);
},
//取消订单
@@ -427,7 +427,7 @@ export default {
if (res.data.result.length >= 1) {
this.cancelList = res.data.result;
}
uni.hideLoading();
if (this.$store.state.isShowToast){ uni.hideLoading() };
});
this.cancelShow = true;