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-31 13:11:02 +00:00
|
|
|
component: import(`../components/table/demo/${d}`),
|
2017-11-03 04:04:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
export default [
|
2018-03-10 05:34:26 +00:00
|
|
|
{ path: '/:lang?/components/:name/:demo?/:other?', component: Demo },
|
2018-01-26 05:48:20 +00:00
|
|
|
{ path: '/:lang?/test/:name/:demo?', component: AsyncComp },
|
2018-03-21 05:52:06 +00:00
|
|
|
{ path: '/*', redirect: '/us/components/button' },
|
2017-11-03 04:04:39 +00:00
|
|
|
]
|