1eb36385 by 任超

style;路由

1 parent aa08c8f7
...@@ -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: () => import('@/views/error-page/404'), 25 component: Layout,
26 hidden: true 26 meta: { title: '404' },
27 hidden: true,
28 children: [
29 {
30 path: '404',
31 component: () => import('@/views/error-page/404'),
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: '*',
46 component: () => import('@/views/error-page/404'), 55 component: Layout,
47 hidden: true 56 meta: { title: '404' },
57 redirect: '/404',
58 hidden: true,
59 children: [
60 {
61 path: '404',
62 component: () => import('@/views/error-page/404'),
63 name: '404',
64 meta: { title: '404' }
65 }
66 ]
48 }, 67 },
49 ] 68 ]
50 /** 69 /**
......