调整登录跳转
This commit is contained in:
parent
be61bbe153
commit
72eebf7697
@ -1,5 +1,5 @@
|
|||||||
const ip: string = "127.0.0.1:8897";
|
// const ip: string = "127.0.0.1:8897";
|
||||||
// const ip: string = "yufangzc.com";
|
const ip: string = "yufangzc.com";
|
||||||
const fwqip: string = "yufangzc.com";
|
const fwqip: string = "yufangzc.com";
|
||||||
//打包服务器接口代理标识
|
//打包服务器接口代理标识
|
||||||
const SERVERAGENT: string = "/jzd-api";
|
const SERVERAGENT: string = "/jzd-api";
|
||||||
|
|||||||
@ -40,17 +40,20 @@ onLoad(async (data: any) => {
|
|||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
if (res.resultCode == 1) {
|
if (res.resultCode == 1) {
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
console.log(res.result);
|
|
||||||
afterLoginAction(res.result);
|
afterLoginAction(res.result);
|
||||||
toHome(data);
|
toHome(data);
|
||||||
} else {
|
return;
|
||||||
uni.reLaunch({
|
|
||||||
url: "/pages/system/login/login",
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
uni.reLaunch({
|
||||||
|
url: "/pages/system/login/login",
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.catch((err) => {});
|
.catch((err) => {
|
||||||
|
uni.reLaunch({
|
||||||
|
url: "/pages/system/login/login",
|
||||||
|
});
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: "/pages/system/login/login",
|
url: "/pages/system/login/login",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user