mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 05:49:20 +08:00
feat(ui): 新增欢迎页面作为首页
1. 新增 /welcome 欢迎页面 2. 设为默认首页(替代 /company-overview) 3. 添加静态路由配置,ignoreAccess=true 无权限也能访问
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user