替换角色弹窗 立马执行关闭

This commit is contained in:
北枳 2025-08-19 03:28:14 +08:00
parent ed1d1ac132
commit 83e264f5e2

View File

@ -166,6 +166,7 @@ CharacterTabContentProps
console.log('Selected shots:', selectedShots); console.log('Selected shots:', selectedShots);
console.log('Add to library:', addToLibrary); console.log('Add to library:', addToLibrary);
setIsReplacePanelOpen(false); setIsReplacePanelOpen(false);
onClose();
await applyRoleToSelectedShots(selectedRole || {} as RoleEntity); await applyRoleToSelectedShots(selectedRole || {} as RoleEntity);
if(addToLibrary){ if(addToLibrary){
await saveRoleToLibrary(); await saveRoleToLibrary();
@ -468,3 +469,5 @@ CharacterTabContentProps
</div> </div>
); );
}); });
CharacterTabContent.displayName = 'CharacterTabContent';