登录接口修改
This commit is contained in:
1 parent
07235041ad
commit
b1f41521d9
3 files changed
+16
-17
No files matched your search
@@ -58,8 +58,11 @@ async function handleZzdLogin(): Promise<boolean> {
|
||||
} else {
|
||||
uni.removeStorageSync(TOKEN_KEY)
|
||||
uni.removeStorageSync(USER_INFO_KEY)
|
||||
// uni.showToast({ title: res.msg || "登录失败", icon: "none" })
|
||||
uni.showToast({ title: "用户信息获取失败,请退出然后重新进入智慧后勤应用", icon: "none", duration: 5000 })
|
||||
if (res.msg == "token已失效") {
|
||||
uni.showToast({ title: "用户凭证已失效,请退出并重新进入智慧后勤应用", icon: "none", duration: 6000 })
|
||||
} else {
|
||||
uni.showToast({ title: res.msg || "登录失败", icon: "none" })
|
||||
}
|
||||
return false
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user