BUG 修改
This commit is contained in:
parent
f7e1556ed7
commit
5430330eaf
|
@ -109,7 +109,7 @@ instance.interceptors.response.use(
|
|||
}
|
||||
}
|
||||
console.log('已清除')
|
||||
location.reload()
|
||||
router.push({ path: '/login' })
|
||||
}
|
||||
response['Access-Control-Expose-Headers'] = 'redirect'
|
||||
const { code, message } = response.data
|
||||
|
@ -170,7 +170,7 @@ instance.interceptors.response.use(
|
|||
}
|
||||
}
|
||||
console.log('已清除')
|
||||
location.reload()
|
||||
router.push({ path: '/login' })
|
||||
}
|
||||
if (response.headers.redirect) {
|
||||
window.location.href = response.headers.redirect
|
||||
|
|
Loading…
Reference in New Issue