月球大数据地理空间分析展示平台-【中台】
WX
2023-08-15 ec86ce630c3bf6ef4abe5f52ecde21eeda03c5e7
src/components/navMenu.vue
@@ -239,14 +239,23 @@
        this.changeSelectStyle = index;
        sessionStorage.setItem('changeSelectStyle', index)
      } else {
        if (this.showFlag != index) {
          if (item.url == '/bankController') {
            this.setLiClick(item, index)
          } else {
          this.showFlag = index;
          this.changeSelectStyle = index;
          if (item.url && item.children && item.children.length == 0) {
            window.open(item.url)
          }
          }
          this.changeSelectStyle = index;
        } else {
          this.showFlag = null;
        }
@@ -335,7 +344,6 @@
      }
    },
    async setMenuTree(res) {
      for (var i in res) {
        res[i].checkClass = res[i].css + '1';
        res[i].show = false; //控制显隐
@@ -349,6 +357,9 @@
              return value.isShow == 1;
            })
              .filter((value) => {
                if (value.pid == res[i].id) {
                  // console.log(JSON.stringify(value))
                }
                return value.pid == res[i].id;
              });