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/site/routes.js

13 lines
394 B

import Demo from './components/demo.vue'
const AsyncComp = () => {
const d = window.location.hash.replace('#', '')
return {
component: import(`../components/transfer/demo/${d}`),
}
}
export default [
{ path: '/:prefix?/components/:name/', component: Demo },
{ path: '/:prefix?/test/:demo?/', component: AsyncComp },
{ path: '/*', redirect: '/ant-design/components/button/' },
]