1234567891011121314151617181920212223242526272829303132333435 |
- import { RouteRecordRaw } from 'vue-router'
- export const Layout = () => import('@/layouts/index.vue')
- const routes: Array<RouteRecordRaw> = [
- { path: '/:pathMatch(.*)*', component: () => import("@/views/error/404.vue") },
- { path: '/home', name: '总览', component: () => import('@/views/home/index.vue') },
- {
- path: '',
- component: Layout,
- meta: {},
- children: [
- {
- path: '/demo',
- name: 'Demo',
- meta: { hidden: false, title: '测试用例'},
- component: () => import('@/views/demo/index.vue')
- },
- {
- path: '/case',
- name: 'TestCase',
- meta: { hidden: false, title: '测试用例'},
- component: () => import('@/views/test/index.vue')
- },
- {
- path: '/case-list',
- name: 'TestCaseList',
- meta: { hidden: false, title: '测试用例'},
- component: () => import('@/views/test/list.vue')
- }
- ]
- }
- ]
- export default routes
|