|
|
@ -207,11 +207,12 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
callbackLogin(res) { |
|
|
|
callbackLogin(res) { |
|
|
|
let { authTokenDTO, isCompanyAccount } = res.data; |
|
|
|
let { authTokenDTO } = res.data; |
|
|
|
if (authTokenDTO.loginFlag) { |
|
|
|
if (authTokenDTO.loginFlag) { |
|
|
|
uni.setStorageSync("Authorization", authTokenDTO.accessToken); |
|
|
|
uni.setStorageSync("Authorization", authTokenDTO.accessToken); |
|
|
|
uni.setStorageSync("accountStatus", isCompanyAccount); |
|
|
|
// uni.setStorageSync("accountStatus", isCompanyAccount); |
|
|
|
uni.setStorageSync("user", authTokenDTO.loginUser); |
|
|
|
uni.setStorageSync("user", authTokenDTO.loginUser); |
|
|
|
|
|
|
|
// console.log() |
|
|
|
uni.reLaunch({ |
|
|
|
uni.reLaunch({ |
|
|
|
url: "/pages/index/index", |
|
|
|
url: "/pages/index/index", |
|
|
|
}); |
|
|
|
}); |
|
|
|