From 39c519b818f8f8fa72aa0074f4a3c285f116798f Mon Sep 17 00:00:00 2001 From: renpy Date: Tue, 1 Aug 2023 16:50:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=A8=A1=E5=9D=97=E4=B9=8B?= =?UTF-8?q?=E9=97=B4=E8=B7=B3=E8=BD=AC=E5=90=8E=EF=BC=8C=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E6=A0=8F=E5=92=8C=E4=BA=8C=E7=BA=A7=E8=B7=AF=E7=94=B1=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E8=8F=9C=E5=8D=95=E4=B8=8D=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/menu/CustomTopMenu.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/menu/CustomTopMenu.vue b/src/components/menu/CustomTopMenu.vue index f9f9edc..e163433 100644 --- a/src/components/menu/CustomTopMenu.vue +++ b/src/components/menu/CustomTopMenu.vue @@ -41,7 +41,16 @@ export default { methods: { onMenuSelect({ key }) { const childPath = this.getChildrenPath(this.menuItems.find(menu => menu.name === key)) - this.$router.push(childPath) + if (key == "abnormal-alarm" || key == "istatistics") { + const selectedKeys = window.sessionStorage.getItem('currMenu') + if (selectedKeys) { + this.$router.push(selectedKeys) + } else { + this.$router.push(childPath) + } + } else { + this.$router.push(childPath) + } }, getChildrenPath(menuItem) { if (menuItem.children) {