From 714e965ebd654f714e242e75ec521dfd960ac1dd Mon Sep 17 00:00:00 2001 From: renpy Date: Thu, 24 Aug 2023 13:48:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86web=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E8=8F=9C=E5=8D=95=E9=80=92=E5=BD=92=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E4=B8=AD=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/views/statistics/RouteView.vue | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/views/statistics/RouteView.vue b/src/views/statistics/RouteView.vue index 9bbb728..f99598a 100644 --- a/src/views/statistics/RouteView.vue +++ b/src/views/statistics/RouteView.vue @@ -110,9 +110,11 @@ export default { const openKeys = window.sessionStorage.getItem('openKeys') const selectedKeys = window.sessionStorage.getItem('currMenu') if (selectedKeys) { + this.currSlecteKey=[] // this.defaultSelectedKeys.push(selectedKeys) this.currSlecteKey.push(selectedKeys) } else { + this.currSlecteKey=[] this.initDefaultKeys(this.menus[0]) this.menus.forEach(item => { if (item.name!=="istatistics-data") { @@ -150,18 +152,19 @@ export default { this.openKeys.push(data.path) // if (data.children) { if (data.name!=="istatistics-StateOfHealth-alerts") { - data.children.some((f) => { - if (f.children) { - // 第一个节点展开 - // this.defaultOpenKeys.push(f.path) - this.openKeys.push(f.path) - this.initDefaultKeys(f.children[0]) - } else { - // 选中 - // this.defaultSelectedKeys.push(f.path) - this.currSlecteKey.push(f.path) - return true + if (f.name!=="istatistics-met") { + if (f.children) { + // 第一个节点展开 + // this.defaultOpenKeys.push(f.path) + this.openKeys.push(f.path) + this.initDefaultKeys(f.children[0]) + } else { + // 选中 + // this.defaultSelectedKeys.push(f.path) + this.currSlecteKey.push(f.path) + return true + } } }) }