husilu 6 years ago
parent
commit
c3b78eb6f5
1 changed files with 11 additions and 1 deletions
  1. 11 1
      src/router/modules/router.index.js

+ 11 - 1
src/router/modules/router.index.js

1
+
1
 export default [
2
 export default [
2
   {
3
   {
3
     path: '/panel',
4
     path: '/panel',
4
     name: 'panel',
5
     name: 'panel',
5
     component (resolve) {
6
     component (resolve) {
6
       require(['@/views/panel/index.vue'], resolve)
7
       require(['@/views/panel/index.vue'], resolve)
7
-    }
8
+    },
9
+    children: [
10
+      {
11
+        path: 'trace',
12
+        name: 'Trace',
13
+        component (resolve) {
14
+          require(['@/views/trace/index.vue'], resolve)
15
+        }
16
+      }
17
+    ]
8
   }
18
   }
9
 ]
19
 ]