From 7611db19f3dd2b21f52e251099b363d020a4faef Mon Sep 17 00:00:00 2001 From: zhaoying Date: Fri, 6 Mar 2026 12:06:32 +0800 Subject: [PATCH 1/4] fix(web): app upload jump add delay --- .../components/UploadWorkflowModal.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/web/src/views/ApplicationManagement/components/UploadWorkflowModal.tsx b/web/src/views/ApplicationManagement/components/UploadWorkflowModal.tsx index 503ea55a..56ff51eb 100644 --- a/web/src/views/ApplicationManagement/components/UploadWorkflowModal.tsx +++ b/web/src/views/ApplicationManagement/components/UploadWorkflowModal.tsx @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-28 14:08:14 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-03-02 17:39:49 + * @Last Modified time: 2026-03-06 12:05:46 */ /** * UploadWorkflowModal Component @@ -186,14 +186,16 @@ const UploadWorkflowModal = forwardRef { - switch(type) { - case 'detail': - // Open application detail page in new tab - window.open(`/#/application/config/${appId}`, '_blank'); - break; - } - refresh(); handleClose(); + refresh(); + setTimeout(() => { + switch (type) { + case 'detail': + // Open application detail page in new tab + window.open(`/#/application/config/${appId}`, '_blank'); + break; + } + }, 100) }; /** @@ -350,7 +352,7 @@ const UploadWorkflowModal = forwardRef handleJump('list')}> + , + {!item.model_id && } diff --git a/web/src/views/ModelManagement/types.ts b/web/src/views/ModelManagement/types.ts index 3233353b..d68e5521 100644 --- a/web/src/views/ModelManagement/types.ts +++ b/web/src/views/ModelManagement/types.ts @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-03 16:50:18 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-03-04 11:39:20 + * @Last Modified time: 2026-03-06 12:26:11 */ /** * Type definitions for Model Management @@ -121,6 +121,7 @@ export interface ModelApiKey { * Model list item data structure */ export interface ModelListItem { + model_id?: string; /** Model name */ model_name?: string; /** Associated model config IDs */ From 0b2651f4edde3cadfe21c8a2505d63968e6b779d Mon Sep 17 00:00:00 2001 From: zhaoying Date: Fri, 6 Mar 2026 13:36:50 +0800 Subject: [PATCH 4/4] fix(web): chat file delete bugfix --- web/src/components/Chat/ChatInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/Chat/ChatInput.tsx b/web/src/components/Chat/ChatInput.tsx index 0e34561a..8c8dce1a 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-03-06 12:21:19 + * @Last Modified time: 2026-03-06 13:36:20 */ import { type FC, useEffect, useMemo } from 'react' import { Flex, Input, Form } from 'antd' @@ -50,7 +50,7 @@ const ChatInput: FC = ({ const handleDelete = (file: any) => { - fileChange?.(fileList?.filter(item => item.uid !== file.uid) || []) + fileChange?.(fileList?.filter(item => file.url ? item.url !== file.url : item.uid !== file.uid) || []) } // Convert file object to preview URL const previewFileList = useMemo(() => {