Merge pull request #311 from SuanmoSuanyangTechnology/fix/release_web_zy

Fix/release web zy
This commit is contained in:
yingzhao
2026-02-04 18:38:14 +08:00
committed by GitHub
6 changed files with 20 additions and 21 deletions

View File

@@ -2,6 +2,7 @@ import { request } from '@/utils/request'
import type { Query, OntologyModalData, OntologyClassModalData, OntologyClassExtractModalData } from '@/views/Ontology/types' import type { Query, OntologyModalData, OntologyClassModalData, OntologyClassExtractModalData } from '@/views/Ontology/types'
// Scene list // Scene list
export const getOntologyScenesSimpleUrl = '/memory/ontology/scenes/simple'
export const getOntologyScenesUrl = '/memory/ontology/scenes' export const getOntologyScenesUrl = '/memory/ontology/scenes'
export const getOntologyScenesList = (data: Query) => { export const getOntologyScenesList = (data: Query) => {
return request.get(getOntologyScenesUrl, data) return request.get(getOntologyScenesUrl, data)

View File

@@ -3,7 +3,6 @@ import { createHashRouter, createRoutesFromElements, Route } from 'react-router-
// 导入路由配置JSON // 导入路由配置JSON
import routesConfig from './routes.json'; import routesConfig from './routes.json';
import Ontology from '@/views/Ontology';
// 递归函数,用于生成路由元素 // 递归函数,用于生成路由元素

View File

@@ -7,6 +7,7 @@
{ "path": "/model", "element": "ModelManagement" }, { "path": "/model", "element": "ModelManagement" },
{ "path": "/space", "element": "SpaceManagement" }, { "path": "/space", "element": "SpaceManagement" },
{ "path": "/tool", "element": "ToolManagement" }, { "path": "/tool", "element": "ToolManagement" },
{ "path": "/prompt", "element": "Prompt" },
{ "path": "/pricing", "element": "Pricing" }, { "path": "/pricing", "element": "Pricing" },
{ "path": "/order-pay", "element": "OrderPayment" }, { "path": "/order-pay", "element": "OrderPayment" },
{ "path": "/orders", "element": "OrderHistory" }, { "path": "/orders", "element": "OrderHistory" },
@@ -35,7 +36,6 @@
{ "path": "/reflection-engine/:id", "element": "SelfReflectionEngine" }, { "path": "/reflection-engine/:id", "element": "SelfReflectionEngine" },
{ "path": "/space-config", "element": "SpaceConfig" }, { "path": "/space-config", "element": "SpaceConfig" },
{ "path": "/ontology", "element": "Ontology" }, { "path": "/ontology", "element": "Ontology" },
{ "path": "/prompt", "element": "Prompt" },
{ "path": "/no-permission", "element": "NoPermission" }, { "path": "/no-permission", "element": "NoPermission" },
{ "path": "/*", "element": "NotFound" } { "path": "/*", "element": "NotFound" }
] ]

View File

@@ -52,6 +52,21 @@
"sort": 0, "sort": 0,
"subs": [] "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, "id": 6,
"parent": 0, "parent": 0,
@@ -377,21 +392,6 @@
"iconActive": null, "iconActive": null,
"subs": 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, "id": 19,
"parent": 0, "parent": 0,

View File

@@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next';
import type { MemoryFormData, Memory, MemoryFormRef } from '../types'; import type { MemoryFormData, Memory, MemoryFormRef } from '../types';
import RbModal from '@/components/RbModal' import RbModal from '@/components/RbModal'
import { createMemoryConfig, updateMemoryConfig } from '@/api/memory' import { createMemoryConfig, updateMemoryConfig } from '@/api/memory'
import { getOntologyScenesUrl } from '@/api/ontology' import { getOntologyScenesSimpleUrl } from '@/api/ontology'
import CustomSelect from '@/components/CustomSelect'; import CustomSelect from '@/components/CustomSelect';
const FormItem = Form.Item; const FormItem = Form.Item;
@@ -114,8 +114,7 @@ const MemoryForm = forwardRef<MemoryFormRef, MemoryFormProps>(({
> >
<CustomSelect <CustomSelect
placeholder={t('common.pleaseSelect')} placeholder={t('common.pleaseSelect')}
url={getOntologyScenesUrl} url={getOntologyScenesSimpleUrl}
params={{ pagesize: 100, page: 1 }}
hasAll={false} hasAll={false}
valueKey='scene_id' valueKey='scene_id'
labelKey="scene_name" labelKey="scene_name"

View File

@@ -97,7 +97,7 @@ const MemoryManagement: React.FC = () => {
title={item.config_name} title={item.config_name}
> >
<Tooltip title={item.config_desc}> <Tooltip title={item.config_desc}>
<div className="rb:text-[#5B6167] rb:text-[12px] rb:leading-4.25 rb:font-regular rb:-mt-1 rb:wrap-break-word rb:line-clamp-1">{item.config_desc}</div> <div className="rb:text-[#5B6167] rb:text-[12px] rb:leading-4.25 rb:font-regular rb:-mt-1 rb:wrap-break-word rb:line-clamp-1 rb:h-[17px]">{item.config_desc}</div>
</Tooltip> </Tooltip>
<RbAlert className="rb:mt-3 "> <RbAlert className="rb:mt-3 ">
<div className={clsx("rb:flex rb:gap-5 rb:font-regular rb:text-[14px]")}> <div className={clsx("rb:flex rb:gap-5 rb:font-regular rb:text-[14px]")}>