feat:支持登录成功后跳回到原来页面
This commit is contained in:
@@ -78,6 +78,7 @@ axios.interceptors.request.use(
|
||||
axios.interceptors.response.use(
|
||||
response => {
|
||||
if (licenceErrorCode.indexOf(response.data.code) !== -1 && noJumpPath.indexOf(window.location.hash) == -1) {
|
||||
sessionStorage.setItem('nz-previous-page', router.currentRoute.fullPath)
|
||||
window.location.href = '/'
|
||||
} else if (response.status === 200) {
|
||||
if (accountErrorCode.indexOf(response.data.code) !== -1 && noJumpPath.indexOf(window.location.hash) == -1) {
|
||||
|
||||
Reference in New Issue
Block a user