From 1de2eb3dd1e66f54fe126b818624b72bbd53d21e 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: Tue, 12 Aug 2025 19:20:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=A7=92=E8=89=B2=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E5=A4=84=E7=90=86=E5=87=BD=E6=95=B0handleReplaceChara?= =?UTF-8?q?cter=EF=BC=8C=E6=94=B9=E4=B8=BA=E8=B0=83=E7=94=A8handleStartRep?= =?UTF-8?q?laceCharacter=E4=BB=A5=E7=AE=80=E5=8C=96=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E9=80=BB=E8=BE=91=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ui/character-tab-content.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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(); } };