|
@@ -165,19 +165,45 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
|
|
|
- // {
|
|
|
- // path: '/form',
|
|
|
- // component: Layout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index',
|
|
|
- // name: 'Form',
|
|
|
- // component: () => import('@/views/form/index'),
|
|
|
- // meta: { title: 'Form', icon: 'form' }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- // 404 page must be placed at the end !!!
|
|
|
+ {
|
|
|
+ path: '/cure',
|
|
|
+ component: Layout,
|
|
|
+ redirect: '/cure/commonTools',
|
|
|
+ name: '数据中心',
|
|
|
+ meta: { title: '数据中心', icon: 'example' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'commonTools',
|
|
|
+ name: '通用工具',
|
|
|
+ alwaysShow: true,
|
|
|
+ component: () => import('@/views/cure/menu1/index.vue'),
|
|
|
+ meta: { title: '通用工具', icon: 'interface' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'redis',
|
|
|
+ name: 'Redis',
|
|
|
+ component: () => import('@/views/cure/menu1/action.vue'),
|
|
|
+ meta: { title: '获取Redis的数据', icon: 'interface' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'daijia',
|
|
|
+ name: '代驾数据构造',
|
|
|
+ component: () => import('@/views/cure/menu1/index.vue'),
|
|
|
+ alwaysShow: true,
|
|
|
+ meta: { title: '代驾数据构造', icon: 'rule' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'highBottomLine',
|
|
|
+ name: 'HighBottomLine',
|
|
|
+ component: () => import('@/views/cure/menu1/Homes.vue'),
|
|
|
+ meta: { title: '司机高底线切换', icon: 'interface' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
{ path: '*', redirect: '/404', hidden: true }
|
|
|
]
|
|
|
|
|
@@ -186,7 +212,6 @@ const createRouter = () => new Router({
|
|
|
scrollBehavior: () => ({ y: 0 }),
|
|
|
routes: constantRoutes
|
|
|
})
|
|
|
-
|
|
|
const router = createRouter()
|
|
|
|
|
|
// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
|