request
This commit is contained in:
1 parent
e1197a3f43
commit
6d56a5a8c7
1 file changed
+4
-4
@@ -124,10 +124,10 @@ http.interceptors.request.use(async (config) => {
|
||||
// token过期刷新检查
|
||||
// await checkAndRefreshToken(tokenStorage)
|
||||
|
||||
const authHeader = getAuthHeader(tokenStorage)
|
||||
if (authHeader) {
|
||||
config_header.Authorization = authHeader
|
||||
}
|
||||
// const authHeader = getAuthHeader(tokenStorage)
|
||||
// if (authHeader) {
|
||||
config_header.Authorization = uni.getStorageSync("token")
|
||||
// }
|
||||
} else {
|
||||
uni.showToast({ title: "登录已过期,请重新登录", icon: "none" })
|
||||
router.jump("/pages/test/login")
|
||||
|
||||
Reference in new issue
Block a user