You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/examples/routes.js

14 lines
437 B

7 years ago
import Demo from './components/demo.vue'
7 years ago
const AsyncComp = () => {
7 years ago
const hashs = window.location.hash.split('/')
const d = hashs[hashs.length - 1]
7 years ago
return {
component: import(`../components/date-picker/demo/${d}`),
7 years ago
}
}
export default [
{ path: '/:lang?/components/:name/:demo?/:other?', component: Demo },
7 years ago
{ path: '/:lang?/test/:name/:demo?', component: AsyncComp },
7 years ago
{ path: '/*', redirect: '/cn/components/select' },
7 years ago
]