修复websocket返回异常提示没显示的问题

This commit is contained in:
ywyonui 2025-09-07 20:13:36 +08:00
parent 899c037ab6
commit c0b8773e57

View File

@ -206,11 +206,14 @@ onLoad((options:any) => {
clearXkkcSelected();
PageUtils.toHome(xklxId.value);
} else if (dataObj.code === 2) { //
uni.showToast({
title: dataObj.message,
icon: "none",
duration: 3000
});
uni.hideLoading();
setTimeout(() => {
uni.showToast({
title: dataObj.message,
icon: "none",
duration: 3000
});
}, 500);
} else {
uni.showToast({
title: dataObj.message,