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 + } } }) }