request.ts

This commit is contained in:
zjf committed 2025-04-22 11:55:20 +08:00
1 parent fcb4e0d890
commit b9345a58f5
1 file changed
+3 -3
+3 -3
View File
@@ -34,10 +34,10 @@ function showLoading(message: string) {
// 读取token并处理Authorization请求头
const getAuthHeader = (tokenStorage: any) => {
if (isDevEnv()) {
// if (isDevEnv()) {
return tokenStorage?.access_token ? `Bearer ${tokenStorage.access_token}` : null
}
return tokenStorage?.accessToken?.tokenValue ? `Bearer ${tokenStorage.accessToken.tokenValue}` : null
// }
// return tokenStorage?.accessToken?.tokenValue ? `Bearer ${tokenStorage.accessToken.tokenValue}` : null
}
// 浙政钉登录 登录成功返回true,否则返回false