浏览代码

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(单页)进入单页页面