diff --git a/web/src/routes/index.tsx b/web/src/routes/index.tsx index 21eaeab8..74cf89ec 100644 --- a/web/src/routes/index.tsx +++ b/web/src/routes/index.tsx @@ -3,7 +3,6 @@ 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 b02ebddf..aa5a8178 100644 --- a/web/src/routes/routes.json +++ b/web/src/routes/routes.json @@ -7,6 +7,7 @@ { "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" }, @@ -35,7 +36,6 @@ { "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 d264e061..45da151e 100644 --- a/web/src/store/menu.json +++ b/web/src/store/menu.json @@ -52,6 +52,21 @@ "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, @@ -377,21 +392,6 @@ "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,