修复websocket返回异常提示没显示的问题
This commit is contained in:
parent
899c037ab6
commit
c0b8773e57
@ -206,11 +206,14 @@ onLoad((options:any) => {
|
|||||||
clearXkkcSelected();
|
clearXkkcSelected();
|
||||||
PageUtils.toHome(xklxId.value);
|
PageUtils.toHome(xklxId.value);
|
||||||
} else if (dataObj.code === 2) { // 课程提示
|
} else if (dataObj.code === 2) { // 课程提示
|
||||||
uni.showToast({
|
uni.hideLoading();
|
||||||
title: dataObj.message,
|
setTimeout(() => {
|
||||||
icon: "none",
|
uni.showToast({
|
||||||
duration: 3000
|
title: dataObj.message,
|
||||||
});
|
icon: "none",
|
||||||
|
duration: 3000
|
||||||
|
});
|
||||||
|
}, 500);
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: dataObj.message,
|
title: dataObj.message,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user