routes.js 861 Bytes
  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
function page (path) {
return () => import(`~/pages/${path}`).then(m => m.default || m)
}

export default [
{
path: '/',
name: 'panel',
redirect: '/dashboard',
component: page('panel/index.vue'),
children: [
{
path: 'dashboard',
name: 'panel.dashboard',
component: page('panel/dashboard.vue')
},
{
path: 'components/mltd',
name: 'panel.components.mltd',
component: page('panel/components/mltd.vue')
},
{
path: 'components/od',
name: 'panel.components.od',
component: page('panel/components/od.vue')
},
{
path: 'components/ceptd',
name: 'panel.components.ceptd',
component: page('panel/components/ceptd.vue')
}
]
}
// { path: '/login', name: 'login', component: page('login.vue') }
]