bug fix:单点登录登出问题
This commit is contained in:
parent
6ef87c3c79
commit
f3973fe28d
|
@ -100,6 +100,7 @@ instance.interceptors.response.use(
|
|||
console.log('接口返回', response)
|
||||
console.log('接口返回headers', response.headers)
|
||||
console.log('接口返回REDIRECT', response.headers.redirect)
|
||||
debugger
|
||||
response['Access-Control-Expose-Headers'] = 'redirect'
|
||||
const {
|
||||
code,
|
||||
|
|
|
@ -161,14 +161,14 @@
|
|||
localStorage.removeItem('DetailsPageconetent')
|
||||
window.sessionStorage.setItem('visits', JSON.stringify([]))
|
||||
// 西海岸不返回登录页
|
||||
if (!whoShow1.itShowXiHaiAn) {
|
||||
if (recordRoute) {
|
||||
const fullPath = route.fullPath
|
||||
router.push(`/login?redirect=${fullPath}`)
|
||||
} else {
|
||||
router.push('/login')
|
||||
}
|
||||
}
|
||||
// if (!whoShow1.itShowXiHaiAn) {
|
||||
// if (recordRoute) {
|
||||
// const fullPath = route.fullPath
|
||||
// router.push(`/login?redirect=${fullPath}`)
|
||||
// } else {
|
||||
// router.push('/login')
|
||||
// }
|
||||
// }
|
||||
}
|
||||
// 返回首页
|
||||
const goToHome = () => {
|
||||
|
|
Loading…
Reference in New Issue