mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 12:07:54 +08:00
12 lines
304 B
JavaScript
12 lines
304 B
JavaScript
const AsyncComp = () => {
|
|
const pathnameArr = window.location.pathname.split('/')
|
|
const com = pathnameArr[1] || 'button'
|
|
const demo = pathnameArr[2] || 'index'
|
|
return {
|
|
component: import(`../components/menu/demo/${demo}.vue`),
|
|
}
|
|
}
|
|
export default [
|
|
{ path: '/*', component: AsyncComp },
|
|
]
|