init 初始化脚手架

This commit is contained in:
bootx
2024-02-10 21:52:30 +08:00
commit 17b06dc9c0
131 changed files with 13067 additions and 0 deletions

44
src/router/base.ts Normal file
View File

@@ -0,0 +1,44 @@
import { RouteRecordRaw } from 'vue-router'
import { PageEnum } from '@/enums/pageEnum'
const Layout = () => import('@/layout/index.vue')
// 404 on a page
export const ErrorPageRoute: RouteRecordRaw = {
path: '/:path(.*)*',
name: PageEnum.ERROR_PAGE_NAME,
component: Layout,
meta: {
title: 'ErrorPage',
hideBreadcrumb: true,
},
children: [
{
path: '/:path(.*)*',
name: 'ErrorPageSon',
component: () => import('@/views/exception/404.vue'),
meta: {
title: 'ErrorPage',
hideBreadcrumb: true,
},
},
],
}
export const RootRoute: RouteRecordRaw = {
path: '/',
name: 'Root',
redirect: PageEnum.BASE_HOME,
meta: {
title: 'Root',
},
}
export const LoginRoute: RouteRecordRaw = {
path: '/login',
name: 'Login',
component: () => import('@/views/login/Login.vue'),
meta: {
title: '登录',
},
}