Browse Source

Merge branch 'sit' into dev

xiaodai2017 2 years ago
parent
commit
7fd52930e2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/router/utils.ts

+ 3 - 1
src/router/utils.ts

@@ -133,7 +133,8 @@ function initRouter() {
             redirect: `${e.menu_route}`,
             meta: {
               icon: `${e.menu_img}`,
-              title: `${e.menu_name}`
+              title: `${e.menu_name}`,
+              showLink: e.is_private + "" === "1"
             },
             children: []
           };
@@ -143,6 +144,7 @@ function initRouter() {
               component: `${s.menu_url}`,
               //本地能使用,上生产直接GG
               meta: {
+                showLink: s.is_private + "" === "1",
                 icon: `${s.menu_img}`,
                 title: `${s.menu_name}`
               }