|
@@ -50,7 +50,7 @@ const authHeaderInterceptor = (url: string, options: RequestOptionsInit) => {
|
|
|
const token = window.localStorage.getItem('TOKEN_ID')
|
|
|
// 如果是登录页面,不执行
|
|
|
if (!token && history.location.pathname !== loginPath) {
|
|
|
- return history.push(loginPath)
|
|
|
+ // return history.push(loginPath)
|
|
|
}
|
|
|
const authHeader = { Authorization: `Bearer ${JSON.parse(token)}` }
|
|
|
return {
|