From 779dbdea26acc3842bac9857ca139930c5261490 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Mon, 16 Mar 2026 16:00:56 +0800 Subject: [PATCH] feat(web): app save before edit & export --- .../ApplicationConfig/components/ConfigHeader.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web/src/views/ApplicationConfig/components/ConfigHeader.tsx b/web/src/views/ApplicationConfig/components/ConfigHeader.tsx index 3350780c..755491be 100644 --- a/web/src/views/ApplicationConfig/components/ConfigHeader.tsx +++ b/web/src/views/ApplicationConfig/components/ConfigHeader.tsx @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-03 16:27:52 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-03-13 17:12:59 + * @Last Modified time: 2026-03-16 15:58:10 */ import { type FC, useRef, useMemo, useCallback } from 'react'; import { useNavigate, useParams } from 'react-router-dom'; @@ -97,10 +97,16 @@ const ConfigHeader: FC = ({ applicationModalRef.current?.handleOpen(application) break; case 'copy': - copyModalRef.current?.handleOpen() + appRef?.current?.handleSave(false) + .then(() => { + copyModalRef.current?.handleOpen() + }) break; case 'export': - appExport(application.id, application.name) + appRef?.current?.handleSave(false) + .then(() => { + appExport(application.id, application.name) + }) break; case 'delete': handleDelete()