From fe3c31c08cbb2130b6d869500b7fc919d9092359 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Fri, 6 Feb 2026 11:11:40 +0800 Subject: [PATCH] Revert "feat(web): move prompt menu" This reverts commit 9e6e8f50f8136fb8c963af34d9446dc49a237cad. --- web/src/routes/index.tsx | 1 + web/src/routes/routes.json | 2 +- web/src/store/menu.json | 30 +++++++++++++++--------------- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/web/src/routes/index.tsx b/web/src/routes/index.tsx index 74cf89ec..21eaeab8 100644 --- a/web/src/routes/index.tsx +++ b/web/src/routes/index.tsx @@ -3,6 +3,7 @@ import { createHashRouter, createRoutesFromElements, Route } from 'react-router- // 导入路由配置JSON import routesConfig from './routes.json'; +import Ontology from '@/views/Ontology'; // 递归函数,用于生成路由元素 diff --git a/web/src/routes/routes.json b/web/src/routes/routes.json index aa5a8178..b02ebddf 100644 --- a/web/src/routes/routes.json +++ b/web/src/routes/routes.json @@ -7,7 +7,6 @@ { "path": "/model", "element": "ModelManagement" }, { "path": "/space", "element": "SpaceManagement" }, { "path": "/tool", "element": "ToolManagement" }, - { "path": "/prompt", "element": "Prompt" }, { "path": "/pricing", "element": "Pricing" }, { "path": "/order-pay", "element": "OrderPayment" }, { "path": "/orders", "element": "OrderHistory" }, @@ -36,6 +35,7 @@ { "path": "/reflection-engine/:id", "element": "SelfReflectionEngine" }, { "path": "/space-config", "element": "SpaceConfig" }, { "path": "/ontology", "element": "Ontology" }, + { "path": "/prompt", "element": "Prompt" }, { "path": "/no-permission", "element": "NoPermission" }, { "path": "/*", "element": "NotFound" } ] diff --git a/web/src/store/menu.json b/web/src/store/menu.json index 45da151e..d264e061 100644 --- a/web/src/store/menu.json +++ b/web/src/store/menu.json @@ -52,21 +52,6 @@ "sort": 0, "subs": [] }, - { - "id": 20, - "parent": 0, - "code": "prompt", - "label": "提示词", - "i18nKey": "menu.prompt", - "path": "/prompt", - "enable": true, - "display": true, - "level": 1, - "sort": 0, - "icon": null, - "iconActive": null, - "subs": null - }, { "id": 6, "parent": 0, @@ -392,6 +377,21 @@ "iconActive": null, "subs": null }, + { + "id": 20, + "parent": 0, + "code": "prompt", + "label": "提示词", + "i18nKey": "menu.prompt", + "path": "/prompt", + "enable": true, + "display": true, + "level": 1, + "sort": 0, + "icon": null, + "iconActive": null, + "subs": null + }, { "id": 19, "parent": 0,