延时展示提示信息,防止被删除

This commit is contained in:
chc
2025-01-20 18:35:53 +08:00
parent 24454e2546
commit e95aed8e38

View File

@@ -367,6 +367,7 @@
storage.setUserInfo(user.data.result);
storage.setHasLogin(true);
}else {
setTimeout(() => {
uni.showToast({
title: user.data.message,
icon: "none",
@@ -376,6 +377,7 @@
uni.switchTab({
url: "/pages/tabbar/user/my",
});
}, 500);
}
});
getCurrentPages().length > 1 ?
@@ -515,6 +517,7 @@
});
}
} else {
setTimeout(() => {
uni.showToast({
title: user.data.message,
icon: "none",
@@ -524,6 +527,7 @@
uni.switchTab({
url: "/pages/tabbar/user/my",
});
}, 500);
}
});
}
@@ -591,13 +595,15 @@
storage.setAutoCp(0)
// 登录成功
uni.showToast({
title: "登录成功!",
title:"提示",
content: "登录成功!",
icon: "none",
});
whetherNavigate();
}else{
setTimeout(() => {
uni.showToast({
title: user.data.message,
icon: "none",
@@ -607,6 +613,8 @@
uni.switchTab({
url: "/pages/tabbar/user/my",
});
}, 500);
}
});
}