diff --git a/web/src/components/Chat/ChatInput.tsx b/web/src/components/Chat/ChatInput.tsx index 045e756f..4fe6592b 100644 --- a/web/src/components/Chat/ChatInput.tsx +++ b/web/src/components/Chat/ChatInput.tsx @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2025-12-10 16:46:14 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-02-06 21:23:37 + * @Last Modified time: 2026-02-09 10:26:38 */ import { type FC, useEffect, useMemo } from 'react' import { Flex, Input, Form } from 'antd' @@ -66,7 +66,7 @@ const ChatInput: FC = ({ return (
- {previewFileList.length > 0 && + {previewFileList.length > 0 &&
{previewFileList.map((file) => { if (file.type.includes('image')) { return ( @@ -101,7 +101,7 @@ const ChatInput: FC = ({
) })} -
} +
} {/* Message input form */}
diff --git a/web/src/views/ApplicationConfig/Agent.tsx b/web/src/views/ApplicationConfig/Agent.tsx index d2b9ef4e..713ae1ef 100644 --- a/web/src/views/ApplicationConfig/Agent.tsx +++ b/web/src/views/ApplicationConfig/Agent.tsx @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-03 16:29:21 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-02-06 11:20:14 + * @Last Modified time: 2026-02-09 10:33:21 */ import { type FC, type ReactNode, useEffect, useRef, useState, forwardRef, useImperativeHandle } from 'react'; import clsx from 'clsx' @@ -284,11 +284,19 @@ const Agent = forwardRef((_props, ref) => { ...(item.config || {}) })) } as KnowledgeConfig : null, - tools: tools.map(vo => ({ - tool_id: vo.tool_id, - operation: vo.operation, - enabled: vo.enabled - })), + tools: tools.map(vo => { + if (!vo.operation) { + return { + tool_id: vo.tool_id, + enabled: vo.enabled + } + } + return { + tool_id: vo.tool_id, + operation: vo.operation, + enabled: vo.enabled + } + }), skills: { ...skills, skill_ids: (skills?.skill_ids as Skill[])?.map(vo => vo.id) diff --git a/web/src/views/Conversation/components/UploadFileListModal.tsx b/web/src/views/Conversation/components/UploadFileListModal.tsx index a14b0e38..c5110701 100644 --- a/web/src/views/Conversation/components/UploadFileListModal.tsx +++ b/web/src/views/Conversation/components/UploadFileListModal.tsx @@ -1,8 +1,8 @@ /* * @Author: ZhaoYing * @Date: 2026-02-06 21:09:47 - * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-02-06 21:09:47 + * @Last Modified by: ZhaoYing + * @Last Modified time: 2026-02-09 10:17:54 */ /** * Upload File List Modal Component @@ -19,8 +19,7 @@ * @component */ import { forwardRef, useImperativeHandle, useState } from 'react'; -import { Form, Input, Select, Button, Space } from 'antd'; -import { PlusOutlined, MinusCircleOutlined } from '@ant-design/icons'; +import { Form, Input, Select, Button, Flex } from 'antd'; import { useTranslation } from 'react-i18next'; import type { UploadFileListModalRef } from '../types' @@ -95,11 +94,12 @@ const UploadFileListModal = forwardRef {/* Render each file entry with type selector and URL input */} {fields.map(({ key, name, ...restField }) => ( - + + - remove(name)} style={{ marginTop: 30 }} /> - +
remove(name)} + >
+ ))} - -