From 43cb11fcb2869cf1e4803decd61a0e30f9353389 Mon Sep 17 00:00:00 2001 From: zyh Date: Fri, 2 Sep 2022 16:38:24 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=94=AF=E6=8C=81=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=88=90=E5=8A=9F=E5=90=8E=E8=B7=B3=E5=9B=9E=E5=88=B0?= =?UTF-8?q?=E5=8E=9F=E6=9D=A5=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/http.js | 1 + 1 file changed, 1 insertion(+) diff --git a/nezha-fronted/src/http.js b/nezha-fronted/src/http.js index 2133a9b62..e2c855ee8 100644 --- a/nezha-fronted/src/http.js +++ b/nezha-fronted/src/http.js @@ -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) {