mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 03:09:19 +08:00
fix: 将个人信息路由改为静态路由,确保无需权限验证即可访问
This commit is contained in:
@@ -10,15 +10,14 @@ const dynamicRouteFiles = import.meta.glob('./modules/**/*.ts', {
|
|||||||
|
|
||||||
// 有需要可以自行打开注释,并创建文件夹
|
// 有需要可以自行打开注释,并创建文件夹
|
||||||
// const externalRouteFiles = import.meta.glob('./external/**/*.ts', { eager: true });
|
// const externalRouteFiles = import.meta.glob('./external/**/*.ts', { eager: true });
|
||||||
// const staticRouteFiles = import.meta.glob('./static/**/*.ts', { eager: true });
|
const staticRouteFiles = import.meta.glob('./static/**/*.ts', { eager: true });
|
||||||
|
|
||||||
/** 动态路由 */
|
/** 动态路由 */
|
||||||
const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules(dynamicRouteFiles);
|
const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules(dynamicRouteFiles);
|
||||||
|
|
||||||
/** 外部路由列表,访问这些页面可以不需要Layout,可能用于内嵌在别的系统(不会显示在菜单中) */
|
/** 外部路由列表,访问这些页面可以不需要Layout,可能用于内嵌在别的系统(不会显示在菜单中) */
|
||||||
// const externalRoutes: RouteRecordRaw[] = mergeRouteModules(externalRouteFiles);
|
// const externalRoutes: RouteRecordRaw[] = mergeRouteModules(externalRouteFiles);
|
||||||
// const staticRoutes: RouteRecordRaw[] = mergeRouteModules(staticRouteFiles);
|
const staticRoutes: RouteRecordRaw[] = mergeRouteModules(staticRouteFiles);
|
||||||
const staticRoutes: RouteRecordRaw[] = [];
|
|
||||||
const externalRoutes: RouteRecordRaw[] = [];
|
const externalRoutes: RouteRecordRaw[] = [];
|
||||||
|
|
||||||
/** 路由列表,由基本路由、外部路由和404兜底路由组成
|
/** 路由列表,由基本路由、外部路由和404兜底路由组成
|
||||||
|
|||||||
@@ -19,16 +19,6 @@ const routes: RouteRecordRaw[] = [
|
|||||||
title: '菜单管理',
|
title: '菜单管理',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'PersonalProfile',
|
|
||||||
path: '/system/profile',
|
|
||||||
component: () => import('#/views/system/profile/index.vue'),
|
|
||||||
meta: {
|
|
||||||
icon: 'lucide:user',
|
|
||||||
title: '个人信息',
|
|
||||||
hideInMenu: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
import type { RouteRecordRaw } from 'vue-router';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 静态路由 - 不需要权限验证的路由
|
||||||
|
*/
|
||||||
|
const staticRoutes: RouteRecordRaw[] = [
|
||||||
|
{
|
||||||
|
name: 'PersonalProfile',
|
||||||
|
path: '/system/profile',
|
||||||
|
component: () => import('#/views/system/profile/index.vue'),
|
||||||
|
meta: {
|
||||||
|
icon: 'lucide:user',
|
||||||
|
title: '个人信息',
|
||||||
|
hideInMenu: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export default staticRoutes;
|
||||||
Reference in New Issue
Block a user