2018-01-24 07:39:21 +00:00
|
|
|
import Demo from './components/demo.vue'
|
2017-11-03 04:04:39 +00:00
|
|
|
const AsyncComp = () => {
|
|
|
|
return {
|
2018-02-01 10:18:05 +00:00
|
|
|
component: import(`../components/collapse/demo/index.vue`),
|
2017-11-03 04:04:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
export default [
|
2018-01-24 07:39:21 +00:00
|
|
|
{ path: '/components/:lang/:name/:demo?', component: Demo },
|
2018-01-26 05:48:20 +00:00
|
|
|
{ path: '/:lang?/test/:name/:demo?', component: AsyncComp },
|
2018-01-24 07:39:21 +00:00
|
|
|
{ path: '/*', redirect: '/components/cn/menu' },
|
2017-11-03 04:04:39 +00:00
|
|
|
]
|