diff --git a/components/ui/character-tab-content.tsx b/components/ui/character-tab-content.tsx index e4055f3..ea1d9aa 100644 --- a/components/ui/character-tab-content.tsx +++ b/components/ui/character-tab-content.tsx @@ -142,12 +142,6 @@ export function CharacterTabContent({ setIgnoreReplace(true); }; - const handleReplaceCharacter = (url: string) => { - setEnableAnimation(true); - // 替换角色 - - setIsReplacePanelOpen(true); - }; // President Alfred King Samuel Ryan const handleConfirmReplace = (selectedShots: string[], addToLibrary: boolean) => { // 处理替换确认逻辑 @@ -192,7 +186,7 @@ export function CharacterTabContent({ // 使用真实的角色数据 const selectedRole = userRoleLibrary[index]; if (selectedRole) { - handleReplaceCharacter(selectedRole.imageUrl); + handleStartReplaceCharacter(); } };