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
| /**
| * meta可配置的参数:
| * meta: {
| * title: { String } 显示在侧边栏、面包屑和标签栏的文字
| * hideBread: (false) 设为true后此级路由将不会出现在面包屑中
| * hideMenu: (false) 设为true后在左侧菜单不会显示该页面选项
| * notCache: (false) 设为true后页面在切换标签后不会缓存,如果需要缓存,无需设置这个字段,而且需要设置页面组件name属性和路由配置的name一致
| * access: (null) 可访问该页面的权限数组,当前路由设置的权限会影响子路由
| * }
| */
| // 默认跳转路由
| import PipeLineIndex from '../views/baseInfoMgr/pipeline/PipeLineIndex'
| import MapTemplate from '../views/MapTemplate'
|
| // 应用业务相关路由,挂载menu上的page
| export const routes = [{
| path: '/',
| name: 'Main',
| component: MapTemplate,
| redirect: '/home',
| children: [{
| path: 'home',
| name: 'Home',
| meta: {
| title: '首页'
| },
| component: MapTemplate
| }, {
| path: 'baseInfoMgr/pipeLine',
| name: 'baseInfoMgr',
| component: PipeLineIndex,
| meta: {
| title: '基础数据维护'
| }
| }]
| }]
|
|