From c21a730d6035bffd4ae1f63d14f2801619eec268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Wed, 20 Aug 2025 23:40:57 +0800 Subject: [PATCH] 123 --- components/ui/edit-modal.tsx | 1 + components/ui/shot-tab-content.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/ui/edit-modal.tsx b/components/ui/edit-modal.tsx index da429cf..5697e25 100644 --- a/components/ui/edit-modal.tsx +++ b/components/ui/edit-modal.tsx @@ -217,6 +217,7 @@ export function EditModal({ ); case '4': diff --git a/components/ui/shot-tab-content.tsx b/components/ui/shot-tab-content.tsx index cac8c76..e15c2d2 100644 --- a/components/ui/shot-tab-content.tsx +++ b/components/ui/shot-tab-content.tsx @@ -16,10 +16,11 @@ import { RoleEntity } from '@/app/service/domain/Entities'; interface ShotTabContentProps { currentSketchIndex: number; roles?: any[]; + onApply: () => void; } export const ShotTabContent = (props: ShotTabContentProps) => { - const { currentSketchIndex = 0, roles = [] } = props; + const { currentSketchIndex = 0, roles = [], onApply } = props; const { loading, shotData, @@ -170,6 +171,7 @@ export const ShotTabContent = (props: ShotTabContentProps) => { const handleConfirmReplace = () => { applyRoleToSelectedShots(selectedLibaryRole); setIsReplacePanelOpen(false); + onApply(); }; // 点击按钮重新生成