From d09e73d918870c6f170ea6b9f9ab97ce55a07756 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 23:25:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=AE=A1=E7=90=86=EF=BC=8C=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E4=BB=A3=E7=A0=81=E5=B9=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=A8=A1=E6=80=81=E4=B8=AD=E7=9A=84=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=E6=8C=89=E9=92=AE=E9=80=BB=E8=BE=91=E3=80=82=E5=90=8C?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E7=AE=80=E5=8C=96=E8=A7=92=E8=89=B2=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E9=9D=A2=E6=9D=BF=E7=9A=84=E5=AF=BC=E5=85=A5=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E5=8D=87=E4=BB=A3=E7=A0=81=E5=8F=AF=E8=AF=BB=E6=80=A7?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/use-workflow-data.tsx | 1 - components/ui/edit-modal.tsx | 8 +++++++- components/ui/shot-tab-content.tsx | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index 86dd3e4..c1ab30e 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -215,7 +215,6 @@ export function useWorkflowData() { for (const task of all_task_data) { // 如果有已完成的数据,同步到状态 - console.log('000000000', taskData); if (task.task_name === 'generate_sketch' && (task.task_status !== 'COMPLETED' || taskData.sketch.total_count !== taskData.sketch.data.length)) { taskData.status = '1'; const realSketchResultData = task.task_result.data.filter((item: any) => item.image_path); diff --git a/components/ui/edit-modal.tsx b/components/ui/edit-modal.tsx index c2d1628..f39fcbb 100644 --- a/components/ui/edit-modal.tsx +++ b/components/ui/edit-modal.tsx @@ -118,6 +118,12 @@ export function EditModal({ setIsRemindFallbackOpen(false); } + const handleReset = () => { + console.log('handleReset'); + // 重置当前tab修改的数据 + + } + const renderTabContent = () => { switch (activeTab) { case '0': @@ -278,7 +284,7 @@ export function EditModal({ className="px-4 py-2 rounded-lg bg-white/10 text-white hover:bg-white/20 transition-colors" whileHover={{ scale: 1.02 }} whileTap={{ scale: 0.98 }} - onClick={onClose} + onClick={handleReset} > Reset diff --git a/components/ui/shot-tab-content.tsx b/components/ui/shot-tab-content.tsx index 52e419d..02bd772 100644 --- a/components/ui/shot-tab-content.tsx +++ b/components/ui/shot-tab-content.tsx @@ -8,7 +8,7 @@ import { PersonDetection, PersonDetectionScene } from './person-detection'; import { ShotsEditor } from './shot-editor/ShotsEditor'; import { CharacterLibrarySelector } from './character-library-selector'; import FloatingGlassPanel from './FloatingGlassPanel'; -import { ReplaceCharacterPanel, mockShots, mockCharacter } from './replace-character-panel'; +import { ReplaceCharacterPanel } from './replace-character-panel'; import HorizontalScroller from './HorizontalScroller'; import { useEditData } from '@/components/pages/work-flow/use-edit-data'; import { roleRecognitionResponse } from '@/app/service/usecase/ShotEditUsecase';