This commit is contained in:
海龙 2025-08-21 18:09:01 +08:00
commit 2c88b8201b
2 changed files with 4 additions and 1 deletions

View File

@ -217,6 +217,7 @@ export function EditModal({
<ShotTabContent
currentSketchIndex={currentIndex}
roles={roles}
onApply={handleApply}
/>
);
case '4':

View File

@ -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();
};
// 点击按钮重新生成