diff --git a/video-gen-app/.env b/video-gen-app/.env index 302d39cd..f9817519 100644 --- a/video-gen-app/.env +++ b/video-gen-app/.env @@ -1,5 +1,5 @@ -VITE_API_BASE=http://192.168.120.17:8000 -# VITE_API_BASE=http://ceshi.apiforeign.minzhong.cn +VITE_API_BASE=http://ceshi.apiforeign.minzhong.cn +# VITE_API_BASE=http://192.168.120.17:8000 VITE_USE_MOCK=false # Encryption disabled for dev — enable in production VITE_ENCRYPTION_KEY= diff --git a/video-gen-app/src/assets/bg1.png b/video-gen-app/src/assets/bg1.png index 57d4ce8e..74a3d267 100644 Binary files a/video-gen-app/src/assets/bg1.png and b/video-gen-app/src/assets/bg1.png differ diff --git a/video-gen-app/src/assets/bg2.png b/video-gen-app/src/assets/bg2.png index ac1692f4..55220df6 100644 Binary files a/video-gen-app/src/assets/bg2.png and b/video-gen-app/src/assets/bg2.png differ diff --git a/video-gen-app/src/assets/testb.png b/video-gen-app/src/assets/testb.png index 48dfa4ad..1e3148d3 100644 Binary files a/video-gen-app/src/assets/testb.png and b/video-gen-app/src/assets/testb.png differ diff --git a/video-gen-app/src/pages/RemoveInfo.tsx b/video-gen-app/src/pages/RemoveInfo.tsx index 7a31f9e9..e7b36288 100644 --- a/video-gen-app/src/pages/RemoveInfo.tsx +++ b/video-gen-app/src/pages/RemoveInfo.tsx @@ -36,6 +36,7 @@ function RemoveInfo() { const [splitLoading, setSplitLoading] = useState(false); const [autoSplitLoading, setAutoSplitLoading] = useState(false); const pollingIntervalRef = useRef(null); + const analysisPollingRef = useRef(null); const videoUrl = useMemo(() => buildAssetUrl(taskDetail?.videoUrl), [taskDetail?.videoUrl]); @@ -143,6 +144,10 @@ function RemoveInfo() { clearInterval(pollingIntervalRef.current); pollingIntervalRef.current = null; } + if (analysisPollingRef.current) { + clearInterval(analysisPollingRef.current); + analysisPollingRef.current = null; + } }; }, [refreshPageData]); @@ -152,7 +157,7 @@ function RemoveInfo() { if (taskDetail.analysisStatus === 'processing') { console.log("开始轮询"); - pollingIntervalRef.current = window.setInterval(async () => { + analysisPollingRef.current = window.setInterval(async () => { try { const res = await getShotReplicationDetail(creatID); setTaskDetail(res); @@ -160,16 +165,16 @@ function RemoveInfo() { } }, 3000); } else { - if (pollingIntervalRef.current) { - clearInterval(pollingIntervalRef.current); - pollingIntervalRef.current = null; + if (analysisPollingRef.current) { + clearInterval(analysisPollingRef.current); + analysisPollingRef.current = null; } } return () => { - if (pollingIntervalRef.current) { - clearInterval(pollingIntervalRef.current); - pollingIntervalRef.current = null; + if (analysisPollingRef.current) { + clearInterval(analysisPollingRef.current); + analysisPollingRef.current = null; } }; }, [taskDetail?.analysisStatus, creatID]); @@ -1011,11 +1016,11 @@ function RemoveInfo() { width={640} centered styles={{ - body: { padding: 24, background: '#0f172a' }, - header: { background: '#1e293b', borderBottom: 'none', padding: '20px 24px' }, + body: { padding: 24, }, + header: { borderBottom: '1px solid #e0e0e0', padding: '20px 24px' }, }} > -
+