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-01-22 13:06:51 +00:00
|
|
|
component: import(`../components/card/demo/basic.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-22 13:06:51 +00:00
|
|
|
{ path: '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
|
|
|
]
|