Commit d66d8ec2 authored by heduo's avatar heduo

feat(hd): 暂时隐藏未开发模块

parent acd6e3e9
...@@ -8,14 +8,14 @@ import { t } from '/@/hooks/web/useI18n'; ...@@ -8,14 +8,14 @@ import { t } from '/@/hooks/web/useI18n';
const modules = import.meta.globEager('./modules/**/*.ts'); const modules = import.meta.globEager('./modules/**/*.ts');
const routeModuleList: AppRouteModule[] = []; let routeModuleList: AppRouteModule[] = [];
const hideModuleList: string[] = ['/arbitration', '/authorization', '/complaints'];
Object.keys(modules).forEach((key) => { Object.keys(modules).forEach((key) => {
const mod = modules[key].default || {}; const mod = modules[key].default || {};
const modList = Array.isArray(mod) ? [...mod] : [mod]; const modList = Array.isArray(mod) ? [...mod] : [mod];
routeModuleList.push(...modList); routeModuleList.push(...modList);
}); });
routeModuleList = routeModuleList.filter((v) => !hideModuleList.includes(v.path));
export const asyncRoutes = [PAGE_NOT_FOUND_ROUTE, ...routeModuleList]; export const asyncRoutes = [PAGE_NOT_FOUND_ROUTE, ...routeModuleList];
export const RootRoute: AppRouteRecordRaw = { export const RootRoute: AppRouteRecordRaw = {
...@@ -37,9 +37,4 @@ export const LoginRoute: AppRouteRecordRaw = { ...@@ -37,9 +37,4 @@ export const LoginRoute: AppRouteRecordRaw = {
}; };
// Basic routing without permission // Basic routing without permission
export const basicRoutes = [ export const basicRoutes = [LoginRoute, RootRoute, ...mainOutRoutes, PAGE_NOT_FOUND_ROUTE];
LoginRoute,
RootRoute,
...mainOutRoutes,
PAGE_NOT_FOUND_ROUTE,
];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment