Browse Source

修改路由

duyangyang 2 years ago
parent
commit
7f4fe6b29a
1 changed files with 11 additions and 4 deletions
  1. 11 4
      src/router/index.js

+ 11 - 4
src/router/index.js

@@ -173,15 +173,22 @@ export const constantRoutes = [
     hidden: false,
     alwaysShow: true,
     meta: { title: '任务管理', icon : "" },
-    children: [{
-      path: 'index',
+    children: [
+      {
+      path: 'todo',
       component: (resolve) => require(['@/views/taskManagement/todo/index'], resolve),
       name: 'todo',
       meta: {
         title: '代办任务',
         icon: ''
-      }
-    }]
+      },
+      children:[
+        {
+          path:'detail'
+        }
+      ]
+    }
+  ]
   }
 ]