From c3e5c8b8bb46fa07f801a201bf3fe362e69598c9 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Fri, 27 Mar 2026 18:14:57 +0800 Subject: [PATCH] fix(web): app message duration --- web/src/views/ApplicationConfig/Agent.tsx | 4 ++-- web/src/views/ApplicationConfig/Cluster.tsx | 4 ++-- web/src/views/Workflow/hooks/useWorkflowGraph.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/src/views/ApplicationConfig/Agent.tsx b/web/src/views/ApplicationConfig/Agent.tsx index 9aaac375..0cfdde05 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-03-27 13:46:18 + * @Last Modified time: 2026-03-27 18:13:51 */ import { useEffect, useRef, useState, forwardRef, useImperativeHandle, useMemo } from 'react'; import { useTranslation } from 'react-i18next' @@ -255,7 +255,7 @@ const Agent = forwardRef { if (flag) { - message.success(t('common.saveSuccess')) + message.success({ content: t('common.saveSuccess'), duration: 1 }) } setIsSave(false) resolve(res) diff --git a/web/src/views/ApplicationConfig/Cluster.tsx b/web/src/views/ApplicationConfig/Cluster.tsx index 2a7ae475..c452eef0 100644 --- a/web/src/views/ApplicationConfig/Cluster.tsx +++ b/web/src/views/ApplicationConfig/Cluster.tsx @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-03 16:29:33 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-03-27 11:51:34 + * @Last Modified time: 2026-03-27 18:14:25 */ import { useEffect, useState, useRef, forwardRef, useImperativeHandle } from 'react' import { useTranslation } from 'react-i18next' @@ -79,7 +79,7 @@ const Cluster = forwardRef { if (flag) { - message.success(t('common.saveSuccess')) + message.success({ content: t('common.saveSuccess'), duration: 1 }) } resolve(res) }) diff --git a/web/src/views/Workflow/hooks/useWorkflowGraph.ts b/web/src/views/Workflow/hooks/useWorkflowGraph.ts index ddfef27f..626165da 100644 --- a/web/src/views/Workflow/hooks/useWorkflowGraph.ts +++ b/web/src/views/Workflow/hooks/useWorkflowGraph.ts @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-03 15:17:48 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-03-27 17:11:01 + * @Last Modified time: 2026-03-27 18:14:38 */ import { useRef, useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; @@ -1177,7 +1177,7 @@ export const useWorkflowGraph = ({ saveWorkflowConfig(config.app_id, params as WorkflowConfig) .then((res) => { if (flag) { - message.success(t('common.saveSuccess')) + message.success({ content: t('common.saveSuccess'), duration: 1 }) } resolve(res) }).catch(error => {