This commit is contained in:
2025-01-22 11:41:19 +08:00
4 changed files with 39 additions and 11 deletions

View File

@@ -120,14 +120,12 @@ function commonsProcess(showLoading, httpReqCallback, isreturm) {
}
if (res.code == 401) {
infoBox.showToast(res.message || "请登录").then(() => {
uni.redirectTo({
url: "/pages/login/login",
});
reject();
uni.redirectTo({
url: "/pages/login/login",
});
reject();
}
if (res.code != 0) {
if (res.code != 0&&res.code != 401) {
infoBox.showToast(res.msg).then(() => {});
reject();
}