|
|
@ -1,4 +1,4 @@ |
|
|
|
import { host } from '@/config/host'; |
|
|
|
// import { host } from '@/config/host';
|
|
|
|
|
|
|
|
let isRefreshing = false |
|
|
|
let refreshSubscribers = [] |
|
|
@ -42,7 +42,7 @@ export async function handleTokenRefresh(originalRequest, instance) { |
|
|
|
isRefreshing = false |
|
|
|
refreshSubscribers = [] |
|
|
|
localStorage.removeItem('token') |
|
|
|
window.location.href = host; |
|
|
|
// window.location.href = host;
|
|
|
|
return Promise.reject(err) |
|
|
|
} |
|
|
|
} |
|
|
|