zpf 11 mesiacov pred
rodič
commit
45eecab077
1 zmenil súbory, kde vykonal 5 pridanie a 17 odobranie
  1. 5 17
      src/views/map3d.vue

+ 5 - 17
src/views/map3d.vue

@@ -137,27 +137,15 @@ export default {
     handleMenuSelect(item) {
       this.$router.push({ path: item });
 
-      if (item == "/checkmodel") {
-        store.setToolBarShow(true); //显示工具栏
-        // this.$refs.routeViewRef["switch"]();
-
-      } else {
-        store.setToolBarShow(false); //显示工具栏
-        // this.$refs.routeViewRef["switch"]();
-
-      }
-
-
-
 
 
       // 菜单切换的时候取消左或者右高亮菜单
-      // var lis = document.querySelectorAll('.el-menu-demo1 li');
-      // console.log(lis, "lis");
+      var lis = document.querySelectorAll('.el-menu-demo1 li');
+      console.log(lis, "lis");
 
-      // lis.forEach(function (li) {
-      //   li.classList.remove('is-active');
-      // });
+      lis.forEach(function (li) {
+        li.classList.remove('is-active');
+      });
     },
     handleMenuSelect1(item) {