This commit is contained in:
weiwei committed 2025-04-25 10:53:39 +08:00
1 parent e1197a3f43
commit 6d56a5a8c7
1 file changed
+4 -4
+4 -4
View File
@@ -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")