Browse Source

隐藏api

qinzhipeng_v 5 years ago
parent
commit
9cc39bbc8f
1 changed files with 13 additions and 12 deletions
  1. 13 12
      src/router/index.js

+ 13 - 12
src/router/index.js

@@ -641,14 +641,14 @@ export const constantRoutes = [{
     }
     ]
   },
-  {
-    path: '/apiManagement',
-    // hidden: true,
-    component: () =>
-          import('@/views/apiManagement/index'),
-    name: '接口管理',
-    meta: { title: '接口管理' }
-  },
+  // {
+  //   path: '/apiManagement',
+  //   hidden: true,
+  //   component: () =>
+  //         import('@/views/apiManagement/index'),
+  //   name: '接口管理',
+  //   meta: { title: '接口管理' }
+  // },
   {
     path: '/newWeb',
     component: () =>
@@ -671,13 +671,14 @@ export const constantRoutes = [{
               import('@/views/automation/index'),
       meta: { title: '扁鹊' }
     },
-    // {
-    //   path: '/apiManagement',
-    //   name: 'api管理'
-    // }
+    {
+      path: '/apiManagemet',
+      name: 'api管理'
+    },
     {
       path: '/apiManagement',
       name: 'api管理',
+      hidden: true,
       component: () =>
               import('@/views/apiManagement/index'),
       meta: { title: 'api管理' }