mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-15 07:27:54 +00:00
解决登录失效白屏问题
This commit is contained in:
parent
ff0c0f2b53
commit
36b996cb40
@ -1,7 +1,8 @@
|
||||
import axios, { AxiosInterceptorOptions } from "axios";
|
||||
import axios from "axios";
|
||||
import NProgress from "nprogress";
|
||||
import "nprogress/nprogress.css";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { endsWith } from "lodash-es";
|
||||
import { isDev, config } from "/@/cool";
|
||||
import { storage } from "/@/cool/utils";
|
||||
import { useBase } from "/$/base";
|
||||
@ -49,7 +50,8 @@ request.interceptors.request.use(
|
||||
req.headers["Authorization"] = user.token;
|
||||
}
|
||||
|
||||
if (req.url?.includes("refreshToken")) {
|
||||
// 忽略
|
||||
if (["eps", "refreshToken"].some((e) => endsWith(req.url, e))) {
|
||||
return req;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user