소스 검색

t添加侧边栏点击进入章程

asd123a20 2 년 전
부모
커밋
a00a9bf107
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/components/leftmenu/index.vue

+ 5 - 0
src/components/leftmenu/index.vue

@@ -37,6 +37,11 @@ export default {
       }
       // 获取当前一例的顶级菜单编码
       const parentCode = item.code.substring(0, 2);
+      // 如果编码 = 013(章程)进入章程页
+      if (item.code == '013') {
+        this.$router.push(`/constitution/${item.code}?parentCode=${parentCode}`);
+        return;
+      }
       // 类型为1(栏目)进入列表页
       if (item.type == '1') this.$router.push(`/list/${item.code}?parentCode=${parentCode}`);
       // 类型为2(单页)进入单页页面