fix(menu): 修复两级菜单结构和嵌套问题
1. 菜单类型默认值改为 TOP_LEFT(顶部一级+左侧二级) 2. 二级菜单 component 设为空字符串避免嵌套布局 3. 前端和后端菜单数据同步更新 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e6350d5e33
commit
7f7979679f
29 files changed
+720
-200
No files matched your search
@@ -13,7 +13,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'TOP00000000000000000000000000001',
|
||||
name: 'Market',
|
||||
path: '/market',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '市场',
|
||||
icon: 'ri:shopping-cart-line',
|
||||
@@ -28,7 +28,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'CEL00000000000000000000000000001',
|
||||
name: 'CellStorage',
|
||||
path: 'cell-storage',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '细胞存储',
|
||||
icon: 'ri:test-tube-line',
|
||||
@@ -172,7 +172,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'RSC00000000000000000000000000001',
|
||||
name: 'ResearchDonation',
|
||||
path: 'research-donation',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '科研捐赠',
|
||||
icon: 'ri:hand-heart-line',
|
||||
@@ -222,7 +222,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'PIL00000000000000000000000000001',
|
||||
name: 'PilotService',
|
||||
path: 'pilot-service',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '中试服务',
|
||||
icon: 'ri:flask-line',
|
||||
@@ -288,7 +288,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'BEX00000000000000000000000000001',
|
||||
name: 'BasicExperiment',
|
||||
path: 'basic-experiment',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '基础实验',
|
||||
icon: 'ri:flask-line',
|
||||
@@ -340,7 +340,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'MKT00000000000000000000000000001',
|
||||
name: 'MarketInfo',
|
||||
path: 'market-info',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '市场基础信息',
|
||||
icon: 'ri:price-tag-3-line',
|
||||
@@ -540,7 +540,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'TOP00000000000000000000000000002',
|
||||
name: 'Production',
|
||||
path: '/production-group',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '生产',
|
||||
icon: 'ri:factory-line',
|
||||
@@ -555,7 +555,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'CLI00000000000000000000000000001',
|
||||
name: 'ClinicalApplication',
|
||||
path: 'clinical-application',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '临床应用',
|
||||
icon: 'ri:heart-pulse-line',
|
||||
@@ -660,7 +660,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'PRM00000000000000000000000000001',
|
||||
name: 'ProductionManage',
|
||||
path: 'production',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '生产管理',
|
||||
icon: 'grid',
|
||||
@@ -732,7 +732,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'PRB00000000000000000000000000001',
|
||||
name: 'ProductionBase',
|
||||
path: 'production-base',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '生产基础信息',
|
||||
icon: 'ri:tools-line',
|
||||
@@ -844,7 +844,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'TOP00000000000000000000000000003',
|
||||
name: 'Quality',
|
||||
path: '/quality-group',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '质检',
|
||||
icon: 'ri:shield-check-line',
|
||||
@@ -859,7 +859,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'QCM00000000000000000000000000001',
|
||||
name: 'QualityManage',
|
||||
path: 'quality-manage',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '质检管理',
|
||||
icon: 'ri:shield-check-line',
|
||||
@@ -952,7 +952,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'QCB00000000000000000000000000001',
|
||||
name: 'QualityBase',
|
||||
path: 'quality-base',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '质检基础信息',
|
||||
icon: 'ri:clipboard-line',
|
||||
@@ -1041,7 +1041,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'TOP00000000000000000000000000004',
|
||||
name: 'OperationsGroup',
|
||||
path: '/operations-group',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '运营支撑',
|
||||
icon: 'ri:settings-3-line',
|
||||
@@ -1056,7 +1056,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'SYSB000000000000000000000000000001',
|
||||
name: 'SystemBase',
|
||||
path: 'system-base',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '系统基础信息',
|
||||
icon: 'ri:archive-line',
|
||||
@@ -1105,7 +1105,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'OPS00000000000000000000000000001',
|
||||
name: 'Operations',
|
||||
path: 'operations',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '运营支撑',
|
||||
icon: 'operation',
|
||||
@@ -1148,7 +1148,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'TOP00000000000000000000000000005',
|
||||
name: 'SystemManageGroup',
|
||||
path: '/system-manage',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '系统管理',
|
||||
icon: 'ri:server-line',
|
||||
@@ -1163,7 +1163,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'SYSM000000000000000000000000000001',
|
||||
name: 'SystemManage',
|
||||
path: 'system',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '系统管理',
|
||||
icon: 'ri:settings-3-line',
|
||||
@@ -1263,7 +1263,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
id: 'WKF00000000000000000000000000001',
|
||||
name: 'Workflow',
|
||||
path: 'workflow',
|
||||
component: '/index/index',
|
||||
component: '',
|
||||
meta: {
|
||||
title: '工作流管理',
|
||||
icon: 'workflow',
|
||||
|
||||
Reference in new issue
Block a user