feat:支持登录成功后跳回到原来页面

This commit is contained in:
zyh
2022-09-02 16:38:24 +08:00
parent 80ccd815de
commit 43cb11fcb2

View File

@@ -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) {