From bc358c50a4b485b67e7472a4faeba8b7ac9224c1 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 8 May 2023 15:08:04 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2810=20fix=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95=E5=90=8E=20pace=20?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E6=9D=A1=E4=B8=8D=E6=B6=88=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/layout/header.vue | 2 +- nezha-fronted/src/store/user.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/layout/header.vue b/nezha-fronted/src/components/layout/header.vue index 0fcd30b87..6c6742271 100644 --- a/nezha-fronted/src/components/layout/header.vue +++ b/nezha-fronted/src/components/layout/header.vue @@ -182,7 +182,7 @@ export default { this.$get('logout').then(() => { sessionStorage.setItem('nz-is-logout', '1') this.logoutSuccess() - document.location.href = '/' + // document.location.href = '/' }) }, showPinDialog () { diff --git a/nezha-fronted/src/store/user.js b/nezha-fronted/src/store/user.js index 4bd794ee1..66d2fe7b4 100644 --- a/nezha-fronted/src/store/user.js +++ b/nezha-fronted/src/store/user.js @@ -191,6 +191,7 @@ const user = { localStorage.removeItem('nz-token') localStorage.removeItem('nz-user-id') store.commit('closeTerminal') + window.location.reload() } } }