rts-sim-testing-client/src/router/routes.ts
2023-07-13 18:21:24 +08:00

79 lines
1.7 KiB
TypeScript

import { RouteRecordRaw } from 'vue-router';
const routes: RouteRecordRaw[] = [
{
path: '/',
name: 'home',
component: () => import('layouts/MainLayout.vue'),
children: [{ path: '', component: () => import('pages/IndexPage.vue') }],
},
{
path: '/login',
name: 'login',
component: () => import('pages/UserLogin.vue'),
},
{
path: '/register',
name: 'register',
component: () => import('pages/UserRegister.vue'),
},
{
path: '/dataManage',
name: 'dataManage',
component: () => import('layouts/MainLayout.vue'),
children: [
{
path: 'draft',
name: 'draft',
component: () => import('pages/DraftManage.vue'),
},
{
path: 'publish',
name: 'publish',
component: () => import('pages/PublishManage.vue'),
},
{
path: 'lineInfo',
name: 'lineInfo',
component: () => import('pages/LineInfoManage.vue'),
},
],
},
{
path: '/sysManage',
name: 'sysManage',
component: () => import('layouts/MainLayout.vue'),
children: [
{
path: 'user',
name: 'user',
meta: {
description: '用户管理',
},
component: () => import('pages/UserManage.vue'),
},
],
},
{
path: '/painting/:id/:type',
name: 'painting',
component: () => import('layouts/DrawLayout.vue'),
},
{
path: '/linemap',
name: 'linemap',
component: () => import('layouts/LineLayout.vue'),
},
// Always leave this as last one,
// but you can also remove it
{
path: '/:catchAll(.*)*',
component: () => import('pages/ErrorNotFound.vue'),
},
];
export default routes;