浏览代码

修改路由

“yueshang” 2 年之前
父节点
当前提交
387b4cf80a
共有 1 个文件被更改,包括 1 次插入15 次删除
  1. 1 15
      src/router/index.js

+ 1 - 15
src/router/index.js

@@ -61,7 +61,7 @@ export const constantRoutes = [
     path: '',
     component: () => import('@/layout/indexCommon.vue'),
     redirect: '/index',
-    hidden: true,
+    hidden:true,
     children: [
       {
         path: 'index',
@@ -98,28 +98,14 @@ export const constantRoutes = [
     redirect: '/index',
     children: [
       {
-        path: 'swagger',
-        component: () => import('@/views/tool/swagger/index.vue'),
-        name: 'swagger',
-        meta: { title: '接口', icon: 'dashboard' },
-
-      },
-      {
         path: "/myfile",
         component: () => import("@/views/myfile/MyFile"),
         name: "myfile",
         meta: { title: "我的文件", icon: "myfile" }
       },
-      {
-        path: "/department",
-        component: () => import("@/views/department/Department"),
-        name: "department",
-        meta: { title: "部门文件", icon: "department" }
-      }
     ]
   },
 
-
   {
     path: '/user',
     component: Layout,