diff --git a/web/src/i18n/en.ts b/web/src/i18n/en.ts index bf3dffc6..3af0e43f 100644 --- a/web/src/i18n/en.ts +++ b/web/src/i18n/en.ts @@ -415,6 +415,8 @@ export const en = { reset: 'Reset', refresh: 'Refresh', return: 'Return', + statusEnabled: 'Available', + statusDisabled: 'Unavailable' }, model: { searchPlaceholder: 'search model…', @@ -1581,6 +1583,7 @@ Memory Bear: After the rebellion, regional warlordism intensified for several re configured_disabled_desc: 'API is configured but not enabled', error_desc: 'API is configured but connection error', + testConnectionSuccess: 'Test Connection Successful', serviceEndpoint: 'Service Endpoint URL', serviceEndpointPlaceholder: 'URL of the service endpoint', serviceEndpointExtra: 'Complete access address of the MCP service', @@ -1730,6 +1733,7 @@ Memory Bear: After the rebellion, regional warlordism intensified for several re method: 'Method', path: 'Path', viewDetail: 'View Details', + textLink: 'Test Connection', noResult: 'Processing results will be displayed here' }, workflow: { diff --git a/web/src/i18n/zh.ts b/web/src/i18n/zh.ts index 2d76f474..e5602685 100644 --- a/web/src/i18n/zh.ts +++ b/web/src/i18n/zh.ts @@ -963,6 +963,8 @@ export const zh = { reset: '重置', refresh: '刷新', return: '返回', + statusEnabled: '可用', + statusDisabled: '不可用' }, product: { applicationManagement: '应用管理', diff --git a/web/src/store/user.ts b/web/src/store/user.ts index 4d8fab35..28809e79 100644 --- a/web/src/store/user.ts +++ b/web/src/store/user.ts @@ -45,7 +45,7 @@ export const useUser = create((set, get) => ({ const response = res as User; set({ user: response }) if (flag) { - window.location.href = response.role && response.current_workspace_id ? '/#/' : '/#/space' + window.location.href = response.role && response.current_workspace_id ? '/#/' : '/#/index' } localStorage.setItem('user', JSON.stringify(response)) }) diff --git a/web/src/views/ApplicationConfig/Agent.tsx b/web/src/views/ApplicationConfig/Agent.tsx index 81f902cb..8907e0f1 100644 --- a/web/src/views/ApplicationConfig/Agent.tsx +++ b/web/src/views/ApplicationConfig/Agent.tsx @@ -201,7 +201,11 @@ const Agent = forwardRef((_props, ref) => { ...item, ...filterItem } - }) + }) + setKnowledgeConfig(prev => ({ + ...prev, + knowledge_bases: [...knowledge_bases] + })) setData((prev) => { prev = prev as Config const knowledge_retrieval: KnowledgeConfig = { diff --git a/web/src/views/SelfReflectionEngine/index.tsx b/web/src/views/SelfReflectionEngine/index.tsx index 5af88b35..952450b2 100644 --- a/web/src/views/SelfReflectionEngine/index.tsx +++ b/web/src/views/SelfReflectionEngine/index.tsx @@ -256,7 +256,7 @@ const SelfReflectionEngine: React.FC = () => { {t('reflectionEngine.exampleText')} - + {result && <> ; @@ -18,15 +19,16 @@ interface CanvasToolbarProps { const CanvasToolbar: FC = ({ miniMapRef, graphRef, - isHandMode, - setIsHandMode, + // isHandMode, + // setIsHandMode, zoomLevel, - canUndo, - canRedo, - onUndo, - onRedo, + // canUndo, + // canRedo, + // onUndo, + // onRedo, }) => { // 整理布局函数 + /* const handleLayout = () => { if (!graphRef.current) return; const nodes = graphRef.current.getNodes(); @@ -144,28 +146,14 @@ const CanvasToolbar: FC = ({ currentY += 300; // 不同树之间的间距 }); }; - + */ return ( <> {/* 小地图 */} -
+
{/* 缩放控制按钮 */} -
- - +
+ graphRef.current?.zoom(-0.1)} />