西海岸-响应拦截器-去掉reload
This commit is contained in:
parent
3e6f875728
commit
8cb2f83fb5
|
@ -19,6 +19,7 @@ import {
|
|||
setAccessToken
|
||||
} from '@/utils/accessToken'
|
||||
|
||||
|
||||
let loadingInstance
|
||||
|
||||
/**
|
||||
|
@ -111,9 +112,10 @@ instance.interceptors.response.use(
|
|||
}
|
||||
if (response.headers.redirect) {
|
||||
window.location.replace(response.headers.redirect)
|
||||
// setTimeout(() => {
|
||||
location.reload()
|
||||
// }, 1000)
|
||||
// 西海岸-不重新加载
|
||||
if(!whoShow.itShowXiHaiAn) {
|
||||
location.reload()
|
||||
}
|
||||
return response
|
||||
}
|
||||
if (response.headers.redirect === '/#/login') {
|
||||
|
|
Loading…
Reference in New Issue