2018-01-18 13:49:02 +08:00
|
|
|
// [业务演示] 菜单
|
2018-01-18 13:58:03 +08:00
|
|
|
export const menu = {
|
2018-01-18 13:49:02 +08:00
|
|
|
title: '业务演示',
|
|
|
|
|
path: '/demo/business',
|
|
|
|
|
name: 'demo-business',
|
|
|
|
|
component: resolve => { require(['@/components/core/MainLayout/index.vue'], resolve) },
|
2018-01-18 16:46:52 +08:00
|
|
|
// redirect: {
|
|
|
|
|
// name: ''
|
|
|
|
|
// },
|
2018-01-18 13:49:02 +08:00
|
|
|
children: [
|
2018-01-18 16:46:52 +08:00
|
|
|
// 数据处理
|
2018-01-18 13:49:02 +08:00
|
|
|
{
|
2018-01-18 16:46:52 +08:00
|
|
|
title: '数据处理',
|
|
|
|
|
icon: 'flask',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2018-01-19 22:33:20 +08:00
|
|
|
title: '使用 Worker',
|
2018-01-18 16:46:52 +08:00
|
|
|
icon: 'file-o',
|
2018-01-19 22:33:20 +08:00
|
|
|
path: 'data/worker',
|
|
|
|
|
name: 'demo-business-data-worker',
|
|
|
|
|
component: resolve => { require(['@/pages/demo/business/data/worker/index.vue'], resolve) }
|
2018-01-18 16:46:52 +08:00
|
|
|
}
|
|
|
|
|
]
|
2018-01-18 13:49:02 +08:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-18 16:46:52 +08:00
|
|
|
// [业务演示] 路由设置
|
2018-01-18 13:58:03 +08:00
|
|
|
export const router = {
|
|
|
|
|
...menu,
|
|
|
|
|
children: [].concat(...menu.children.map(e => e.children || e))
|
2018-01-18 13:49:02 +08:00
|
|
|
}
|