feat(ui): 新增欢迎页面作为首页

1. 新增 /welcome 欢迎页面
2. 设为默认首页(替代 /company-overview)
3. 添加静态路由配置,ignoreAccess=true 无权限也能访问
This commit is contained in:
小蟑螂
2026-03-29 23:42:43 +08:00
parent b7cf668818
commit 7b95ca8032
3 changed files with 80 additions and 1 deletions
@@ -0,0 +1,19 @@
import type { RouteRecordRaw } from 'vue-router';
/**
* 静态路由 - 不需要权限验证的路由(用于不需要菜单权限但需要登录的页面)
*/
const staticRoutes: RouteRecordRaw[] = [
{
name: 'Welcome',
path: '/welcome',
component: () => import('#/views/common/welcome/index.vue'),
meta: {
title: '首页',
hideInMenu: true,
ignoreAccess: true,
},
},
];
export default staticRoutes;