mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 23:09:19 +08:00
fix: 修复前端若干类型报错
This commit is contained in:
@@ -14,6 +14,8 @@ const staticRouteFiles = import.meta.glob('./static/**/*.ts', { eager: true });
|
||||
|
||||
/** 动态路由 */
|
||||
const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules(dynamicRouteFiles);
|
||||
/** 基本路由列表,这些路由不需要进入权限拦截 */
|
||||
const coreRouteNames = traverseTreeValues(coreRoutes, (route) => route.name);
|
||||
|
||||
/** 外部路由列表,访问这些页面可以不需要Layout,可能用于内嵌在别的系统(不会显示在菜单中) */
|
||||
// const externalRoutes: RouteRecordRaw[] = mergeRouteModules(externalRouteFiles);
|
||||
@@ -37,9 +39,6 @@ const routes: RouteRecordRaw[] = [
|
||||
fallbackNotFoundRoute,
|
||||
];
|
||||
|
||||
/** 基本路由列表,这些路由不需要进入权限拦截 */
|
||||
const coreRouteNames = traverseTreeValues(coreRoutes, (route) => route.name);
|
||||
|
||||
/** 有权限校验的路由列表,包含动态路由 */
|
||||
const accessRoutes = [...dynamicRoutes];
|
||||
export { accessRoutes, coreRouteNames, routes };
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
meta: {
|
||||
icon: 'lucide:folder-open',
|
||||
order: 300,
|
||||
title: '媒体管理',
|
||||
},
|
||||
name: 'Media',
|
||||
path: '/media',
|
||||
children: [
|
||||
{
|
||||
name: 'FileRepository',
|
||||
path: '/media/file-repository',
|
||||
component: () => import('#/views/media/file/index.vue'),
|
||||
meta: {
|
||||
icon: 'lucide:folder',
|
||||
title: '文件仓库',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'ImageRepository',
|
||||
path: '/media/image-repository',
|
||||
component: () => import('#/views/media/image/index.vue'),
|
||||
meta: {
|
||||
icon: 'lucide:image',
|
||||
title: '图片仓库',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export default routes;
|
||||
@@ -51,15 +51,12 @@ const routes: RouteRecordRaw[] = [
|
||||
name: 'JobPermissionAssign',
|
||||
path: '/organization/position-permission-assign',
|
||||
component: () =>
|
||||
import(
|
||||
'#/views/organization/position-permission-assign/index.vue'
|
||||
),
|
||||
import('#/views/organization/position-permission-assign/index.vue'),
|
||||
meta: {
|
||||
icon: 'lucide:shield-check',
|
||||
title: '职位权限分配',
|
||||
},
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -44,8 +44,7 @@ const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
name: 'SystemPlatformAccountSuper',
|
||||
path: '/platform-admin/account-super',
|
||||
component: () =>
|
||||
import('#/views/organization/account-super/index.vue'),
|
||||
component: () => import('#/views/organization/account-super/index.vue'),
|
||||
meta: {
|
||||
icon: 'lucide:user-check',
|
||||
title: '平台账户管理',
|
||||
@@ -67,9 +66,7 @@ const routes: RouteRecordRaw[] = [
|
||||
name: 'SystemPlatformCompanyPermissionManage',
|
||||
path: '/platform-admin/company-permission-manage',
|
||||
component: () =>
|
||||
import(
|
||||
'#/views/system/platform/company-permission-manage/index.vue'
|
||||
),
|
||||
import('#/views/system/platform/company-permission-manage/index.vue'),
|
||||
meta: {
|
||||
icon: 'lucide:shield-check',
|
||||
title: '公司权限管理',
|
||||
|
||||
Reference in New Issue
Block a user