Forráskód Böngészése

删除无用代码

zpf 11 hónapja
szülő
commit
45eecab077
1 módosított fájl, 5 hozzáadás és 17 törlés
  1. 5 17
      src/views/map3d.vue

+ 5 - 17
src/views/map3d.vue

@@ -137,27 +137,15 @@ export default {
     handleMenuSelect(item) {
     handleMenuSelect(item) {
       this.$router.push({ path: 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) {
     handleMenuSelect1(item) {