12345678910111213141516171819202122232425262728293031323334353637 |
- import Layout from '@/layout/index.vue'
- import { createNameComponent } from '../createNode'
- const route = [
- {
- path: '/system',
- component: Layout,
- redirect: '/404',
- hideMenu: true,
- meta: { title: '系统目录' },
- children: [
- {
- path: '/404',
- component: createNameComponent(() => import('@/views/system/404.vue')),
- meta: { title: '404', hideTabs: true },
- },
- {
- path: '/401',
- component: createNameComponent(() => import('@/views/system/401.vue')),
- meta: { title: '401', hideTabs: true },
- },
- {
- path: '/redirect/:path(.*)',
- component: createNameComponent(() => import('@/views/system/redirect.vue')),
- meta: { title: 'redirect', hideTabs: true },
- },
- ],
- },
- {
- // 找不到路由重定向到404页面
- path: '/:pathMatch(.*)',
- component: Layout,
- redirect: '/404',
- hideMenu: true,
- },
- ]
- export default route
|