style;路由
Showing
1 changed file
with
22 additions
and
3 deletions
... | @@ -21,9 +21,18 @@ export const constantRoutes = [ | ... | @@ -21,9 +21,18 @@ export const constantRoutes = [ |
21 | ] | 21 | ] |
22 | }, | 22 | }, |
23 | { | 23 | { |
24 | path: '/404', | 24 | path: '/', |
25 | component: Layout, | ||
26 | meta: { title: '404' }, | ||
27 | hidden: true, | ||
28 | children: [ | ||
29 | { | ||
30 | path: '404', | ||
25 | component: () => import('@/views/error-page/404'), | 31 | component: () => import('@/views/error-page/404'), |
26 | hidden: true | 32 | name: '404', |
33 | meta: { title: '404' } | ||
34 | } | ||
35 | ] | ||
27 | }, | 36 | }, |
28 | // 业务流程框架 | 37 | // 业务流程框架 |
29 | { | 38 | { |
... | @@ -43,8 +52,18 @@ export const constantRoutes = [ | ... | @@ -43,8 +52,18 @@ export const constantRoutes = [ |
43 | }, | 52 | }, |
44 | { | 53 | { |
45 | path: '*', | 54 | path: '*', |
55 | component: Layout, | ||
56 | meta: { title: '404' }, | ||
57 | redirect: '/404', | ||
58 | hidden: true, | ||
59 | children: [ | ||
60 | { | ||
61 | path: '404', | ||
46 | component: () => import('@/views/error-page/404'), | 62 | component: () => import('@/views/error-page/404'), |
47 | hidden: true | 63 | name: '404', |
64 | meta: { title: '404' } | ||
65 | } | ||
66 | ] | ||
48 | }, | 67 | }, |
49 | ] | 68 | ] |
50 | /** | 69 | /** | ... | ... |
-
Please register or sign in to post a comment