router.config.js
1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* 基础路由
* @type { *[] }
*/
export const constantRouterMap = [
{
path: '/',
component: () => import('@/views/layouts/index'),
redirect: '/departure',
meta: {
title: '首页',
keepAlive: false
},
children: [
{
path: '/home',
name: 'Home',
component: () => import('@/views/home/index'),
meta: { title: '首页', keepAlive: false }
},
{
path: '/about',
name: 'About',
component: () => import('@/views/home/about'),
meta: { title: '关于我', keepAlive: false }
},
{
path: '/departure',
name: 'Departure',
component: () => import('@/views/home/departure'),
meta: { title: '出发列表', keepAlive: false }
},
{
path: '/result',
name: 'Result',
component: () => import('@/views/home/result'),
meta: { title: '规划结果', keepAlive: false }
},
{
path: '/target',
name: 'Target',
component: () => import('@/views/home/target'),
meta: { title: '目的列表', keepAlive: false }
},
{
path: '/about1',
name: 'About1',
component: () => import('@/views/home/about1'),
meta: { title: '关于我', keepAlive: false }
}
]
}
]