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