diff --git a/nezha-fronted/src/components/common/leftMenu.vue b/nezha-fronted/src/components/common/leftMenu.vue index f54e17f24..e49c4f23c 100644 --- a/nezha-fronted/src/components/common/leftMenu.vue +++ b/nezha-fronted/src/components/common/leftMenu.vue @@ -136,7 +136,7 @@
- +
@@ -187,6 +187,7 @@ tagCheckMap:{}, lastCheckSize:0, assetPingSwitch:true, + isRouterAlive: true } }, computed: { @@ -619,15 +620,19 @@ } }, jumpTo(route) { - /*bus.$emit("menu-change", route); - localStorage.setItem('nz-parent-menu', this.parentMenu); - localStorage.setItem('nz-menu-change', route);*/ + if(route == this.route){ + this.reload(); + } this.$router.push({ path: route, query: { t: +new Date() } }); + }, + reload () { + this.isRouterAlive = false + this.$nextTick(() => (this.isRouterAlive = true)) } }, } diff --git a/nezha-fronted/src/components/page/dashboard/panel.vue b/nezha-fronted/src/components/page/dashboard/panel.vue index 6b086e04e..1acf67fb5 100644 --- a/nezha-fronted/src/components/page/dashboard/panel.vue +++ b/nezha-fronted/src/components/page/dashboard/panel.vue @@ -6,13 +6,19 @@