调整登录跳转

This commit is contained in:
ywyonui 2025-06-23 11:29:41 +08:00
parent be61bbe153
commit 72eebf7697
2 changed files with 11 additions and 8 deletions

View File

@ -1,5 +1,5 @@
const ip: string = "127.0.0.1:8897";
// const ip: string = "yufangzc.com";
// const ip: string = "127.0.0.1:8897";
const ip: string = "yufangzc.com";
const fwqip: string = "yufangzc.com";
//打包服务器接口代理标识
const SERVERAGENT: string = "/jzd-api";

View File

@ -40,17 +40,20 @@ onLoad(async (data: any) => {
.then(async (res) => {
if (res.resultCode == 1) {
if (res.result) {
console.log(res.result);
afterLoginAction(res.result);
toHome(data);
} else {
return;
}
}
uni.reLaunch({
url: "/pages/system/login/login",
});
}
}
})
.catch((err) => {});
.catch((err) => {
uni.reLaunch({
url: "/pages/system/login/login",
});
});
} else {
uni.reLaunch({
url: "/pages/system/login/login",