2018-10-12 07:10:11 +08:00
|
|
|
import layoutHeaderAside from '@/layout/header-aside'
|
|
|
|
|
|
2018-12-04 10:18:41 +08:00
|
|
|
const meta = { auth: true }
|
2018-10-12 07:10:11 +08:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
path: '/demo/business',
|
|
|
|
|
name: 'demo-business',
|
|
|
|
|
meta,
|
|
|
|
|
redirect: { name: 'demo-business-index' },
|
|
|
|
|
component: layoutHeaderAside,
|
|
|
|
|
children: (pre => [
|
2018-11-28 16:49:46 +08:00
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
|
name: `${pre}index`,
|
|
|
|
|
component: () => import('@/pages/demo/business/index'),
|
|
|
|
|
meta: {
|
|
|
|
|
...meta,
|
|
|
|
|
title: '示例首页'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'table/1',
|
|
|
|
|
name: `${pre}table-1`,
|
|
|
|
|
component: () => import('@/pages/demo/business/table/1'),
|
|
|
|
|
meta: {
|
|
|
|
|
...meta,
|
|
|
|
|
title: '表格 1'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'issues/142',
|
|
|
|
|
name: `${pre}issues-142`,
|
|
|
|
|
component: () => import('@/pages/demo/business/issues/142'),
|
|
|
|
|
meta: {
|
|
|
|
|
...meta,
|
|
|
|
|
title: 'issue #142'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'issues/142/edit/:id',
|
|
|
|
|
name: `${pre}issues-142-edit`,
|
|
|
|
|
component: () => import('@/pages/demo/business/issues/142/edit'),
|
|
|
|
|
props: true,
|
|
|
|
|
meta: {
|
|
|
|
|
...meta,
|
2018-11-28 19:43:04 +08:00
|
|
|
title: '无缓存编辑'
|
2018-11-28 16:49:46 +08:00
|
|
|
}
|
2018-11-29 10:14:44 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'issues/142/edit-cache-db/:id',
|
|
|
|
|
name: `${pre}issues-142-edit-cache-db`,
|
|
|
|
|
component: () => import('@/pages/demo/business/issues/142/edit-cache-db'),
|
|
|
|
|
props: true,
|
|
|
|
|
meta: {
|
|
|
|
|
...meta,
|
|
|
|
|
title: '带缓存编辑 DB'
|
|
|
|
|
}
|
2018-11-28 16:49:46 +08:00
|
|
|
}
|
2018-10-12 07:10:11 +08:00
|
|
|
])('demo-business-')
|
|
|
|
|
}
|