调整登录跳转
This commit is contained in:
parent
be61bbe153
commit
72eebf7697
@ -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";
|
||||
|
||||
@ -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 {
|
||||
uni.reLaunch({
|
||||
url: "/pages/system/login/login",
|
||||
});
|
||||
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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user