2018-01-24 07:39:21 +00:00
|
|
|
import Demo from './components/demo.vue'
|
2017-11-03 04:04:39 +00:00
|
|
|
const AsyncComp = () => {
|
2018-02-06 07:21:13 +00:00
|
|
|
const hashs = window.location.hash.split('/')
|
|
|
|
const d = hashs[hashs.length - 1]
|
2017-11-03 04:04:39 +00:00
|
|
|
return {
|
2018-03-05 11:06:44 +00:00
|
|
|
component: import(`../components/pagination/demo/${d}.vue`),
|
2017-11-03 04:04:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
export default [
|
2018-02-26 14:19:48 +00:00
|
|
|
{ path: '/:lang?/components/:name/:demo?', component: Demo },
|
2018-01-26 05:48:20 +00:00
|
|
|
{ path: '/:lang?/test/:name/:demo?', component: AsyncComp },
|
2018-02-26 14:19:48 +00:00
|
|
|
{ path: '/*', redirect: '/cn/components/select' },
|
2017-11-03 04:04:39 +00:00
|
|
|
]
|