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: '页面不存在' } } ]