浏览代码

Merge branch 'yx' of ssh://61.161.152.110:29418/electronic-map into tjj2

darker 3 年之前
父节点
当前提交
11018135ec
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7 5
      src/views/layout/Menu.vue

+ 7 - 5
src/views/layout/Menu.vue

@@ -936,12 +936,14 @@ export default {
       handler: function (val, oldVal) {
         this.menuData.some((element, index) => {
           if (val.path.includes(element.id)) {
-            this.currRoot = element.id;
             this.$nextTick(() => {
-              this.currentMenu.some((element, index) => {
-                if (val.path == element.path) {
-                  this.activeIndex = index;
-                }
+              this.currRoot = element.id;
+              this.$nextTick(() => {
+                this.currentMenu.some((element, index) => {
+                  if (val.path == element.path) {
+                    this.activeIndex = index;
+                  }
+                });
               });
             });
             return true;