diff --git a/components/pages/work-flow.tsx b/components/pages/work-flow.tsx index ce94ea0..90a4bb1 100644 --- a/components/pages/work-flow.tsx +++ b/components/pages/work-flow.tsx @@ -14,7 +14,7 @@ import { SaveEditUseCase } from "@/app/service/usecase/SaveEditUseCase"; import { useSearchParams } from "next/navigation"; import SmartChatBox from "@/components/SmartChatBox/SmartChatBox"; import { Drawer, Tooltip, notification } from 'antd'; -import { showEditingNotification } from "@/components/pages/work-flow/editing-notification"; +// import { showEditingNotification } from "@/components/pages/work-flow/editing-notification"; // import { AIEditingIframeButton } from './work-flow/ai-editing-iframe'; import { exportVideoWithRetry } from '@/utils/export-service'; @@ -76,7 +76,8 @@ const WorkFlow = React.memo(function WorkFlow() { console.log('📊 导出进度更新:', progressData); setExportProgress(progressData); - // 根据状态显示不同的通知 + // 根据状态显示不同的通知 - 已注释 + /* if (progressData.status === 'processing') { notification.info({ message: '导出进度', @@ -102,6 +103,7 @@ const WorkFlow = React.memo(function WorkFlow() { key: 'export-progress' }); } + */ }, []); // 处理编辑计划生成完成的回调 const handleEditPlanGenerated = useCallback(() => { @@ -125,6 +127,8 @@ const WorkFlow = React.memo(function WorkFlow() { setTimeout(() => { handleTestExportRef.current?.(); }, 0); + // 编辑通知已全部注释 + /* editingNotificationKey.current = `editing-${Date.now()}`; showEditingNotification({ description: 'Performing intelligent editing...', @@ -172,6 +176,7 @@ const WorkFlow = React.memo(function WorkFlow() { }, 200); } }); + */ }, [episodeId]); // handleTestExport 在内部调用,无需作为依赖 /** 处理导出失败 */ @@ -221,7 +226,8 @@ const WorkFlow = React.memo(function WorkFlow() { console.log('changedIndex_work-flow', currentSketchIndex, taskObject); }, [currentSketchIndex, taskObject]); - // 监听粗剪是否完成,如果完成 更新 showEditingNotification 的状态 为完成,延时 3s 并关闭 + // 监听粗剪是否完成 - 已注释,不显示右上角成功通知 + /* useEffect(() => { console.log('🎬 final video useEffect triggered:', { finalUrl: taskObject.final.url, @@ -255,6 +261,7 @@ const WorkFlow = React.memo(function WorkFlow() { }); } }, [taskObject.final, isHandleEdit, episodeId]); + */ const handleEditModalOpen = useCallback((tab: string) => { setActiveEditTab(tab); @@ -435,7 +442,8 @@ const WorkFlow = React.memo(function WorkFlow() { } */} - {/* 导出进度显示 */} + {/* 导出进度显示 - 已注释 */} + {/* {exportProgress && exportProgress.status === 'processing' && (
@@ -455,6 +463,7 @@ const WorkFlow = React.memo(function WorkFlow() {
)} + */} {/* 测试导出接口按钮 - 隐藏显示(仍可通过逻辑调用) */}