初始化项目

This commit is contained in:
BBIT-Kai
2026-04-30 10:47:26 +08:00
commit c932419c73
147 changed files with 45298 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
import type { RouteRecordRaw } from 'vue-router'
export const staticRoutes: RouteRecordRaw[] = [
{
path: '/login',
name: 'login',
component: () => import('@/views/auth/LoginView.vue'),
meta: { title: '登录' }
},
{
path: '/403',
name: 'forbidden',
component: () => import('@/views/errors/ForbiddenView.vue'),
meta: { title: '无权限' }
},
{
path: '/',
name: 'root',
component: () => import('@/layouts/MainLayout.vue'),
redirect: '/dashboard',
meta: { requiresAuth: true },
children: [
{
path: '/dashboard',
alias: ['/workbench'],
name: 'workbench-home',
component: () => import('@/features/dashboard/index.vue'),
meta: {
title: '工作台',
requiresAuth: true,
keepAlive: true
}
}
]
},
{
path: '/:pathMatch(.*)*',
name: 'not-found',
component: () => import('@/views/errors/NotFoundView.vue'),
meta: { title: '页面不存在' }
}
]