合并分支 'dev' 到 'master'
8个页面路由 查看合并请求 !2
正在显示
7 个修改的文件
包含
77 行增加
和
1 行删除
@@ -7,13 +7,42 @@ const router = createRouter({ | @@ -7,13 +7,42 @@ const router = createRouter({ | ||
7 | { | 7 | { |
8 | path: '/', | 8 | path: '/', |
9 | name: 'home', | 9 | name: 'home', |
10 | - component: Layout | 10 | + component: Layout, |
11 | + children: [ | ||
12 | + { | ||
13 | + path: '', | ||
14 | + name: 'myclass', | ||
15 | + component: () => import('@/views/MyClass.vue') | ||
16 | + }, | ||
17 | + { | ||
18 | + path: 'newclass', | ||
19 | + name: 'newclass', | ||
20 | + component: () => import('@/views/NewClass.vue') | ||
21 | + }, | ||
22 | + { | ||
23 | + path: 'account', | ||
24 | + name: 'account', | ||
25 | + component: () => import('@/views/Account.vue') | ||
26 | + } | ||
27 | + ] | ||
11 | }, | 28 | }, |
12 | { | 29 | { |
13 | path: '/login', | 30 | path: '/login', |
14 | name: 'login', | 31 | name: 'login', |
15 | 32 | ||
16 | component: () => import('@/views/Login.vue') | 33 | component: () => import('@/views/Login.vue') |
34 | + }, | ||
35 | + { | ||
36 | + path: '/code', | ||
37 | + name: 'code', | ||
38 | + | ||
39 | + component: () => import('@/views/Code.vue') | ||
40 | + }, | ||
41 | + { | ||
42 | + path: '/detail', | ||
43 | + name: 'detail', | ||
44 | + | ||
45 | + component: () => import('@/views/ClassDetail.vue') | ||
17 | } | 46 | } |
18 | ] | 47 | ] |
19 | }) | 48 | }) |
src/views/Account.vue
0 → 100644
src/views/ClassDetail.vue
0 → 100644
src/views/Code.vue
0 → 100644
src/views/MyClass.vue
0 → 100644
-
请 注册 或 登录 后发表评论