14 lines
429 B
JavaScript
14 lines
429 B
JavaScript
import Demo from './components/demo.vue'
|
|
const AsyncComp = () => {
|
|
const hashs = window.location.hash.split('/')
|
|
const d = hashs[hashs.length - 1]
|
|
return {
|
|
component: import(`../components/time-picker/demo/${d}`),
|
|
}
|
|
}
|
|
export default [
|
|
{ path: '/:lang?/components/:name/:demo?', component: Demo },
|
|
{ path: '/:lang?/test/:name/:demo?', component: AsyncComp },
|
|
{ path: '/*', redirect: '/cn/components/select' },
|
|
]
|