修改浙政钉登录
This commit is contained in:
1 parent
a8c7b33331
commit
ec3d9cdd38
9 files changed
+484
-281
No files matched your search
@@ -0,0 +1 @@
|
||||
export default () => import.meta.env.VITE_DEV_ENV === "dev"
|
||||
@@ -3,6 +3,7 @@ import { isEmpty } from "radash"
|
||||
|
||||
import { userApi } from "@@/api"
|
||||
import { router, constant } from "@@/index"
|
||||
import isDevEnv from "./isDevEnv"
|
||||
|
||||
const options = {
|
||||
// 显示操作成功消息 默认不显示
|
||||
@@ -149,7 +150,7 @@ http.interceptors.response.use(
|
||||
const tokenKey = constant.storageConstant.TOKEN
|
||||
uni.removeStorageSync(tokenKey)
|
||||
uni.showToast({ title: "登录已过期,请重新登录", icon: "none" })
|
||||
router.jump("/pages/test/login")
|
||||
isDevEnv() ? router.jump("/pages/test/login") : undefined
|
||||
return false
|
||||
}
|
||||
let errorMessage = error.data.msg
|
||||
|
||||
Reference in new issue
Block a user