name 6 年之前
父节点
当前提交
4c05f2f0fe
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/components/SuperComponent.vue

+ 3 - 2
src/components/SuperComponent.vue

@@ -3,7 +3,8 @@
       <el-col :span="2" :offset="2">
        <img class="logoImg" src="../assets/img/log.png"/>
       </el-col>
-      <el-col :span="2" v-show="roles.indexOf(item.id) >= 0"  v-for="(item, index) of menuData" :key="item.id"
+    <!--v-show="roles.indexOf(item.id) >= 0"-->
+      <el-col :span="2"   v-for="(item, index) of menuData" :key="item.id"
       @click.native="secondNavClick(item,index)">
         <span class="lineStyle" :class="{active:index == checkindex,menu_item:true}">{{item.name}}</span>
 
@@ -62,7 +63,7 @@ export default {
     //   this.menuData = JSON.parse(JSON.stringify(this.navsData));
     // },
     secondNavClick(val, index) {
-      this.$router.push("/home/" + val.href);
+      this.$router.push("/super/" + val.href);
       this.checkindex = index;
     }
   },