背景压缩
This commit is contained in:
+2
-2
@@ -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=
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.9 MiB After Width: | Height: | Size: 1.0 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.6 MiB After Width: | Height: | Size: 272 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 MiB After Width: | Height: | Size: 459 KiB |
@@ -36,6 +36,7 @@ function RemoveInfo() {
|
||||
const [splitLoading, setSplitLoading] = useState(false);
|
||||
const [autoSplitLoading, setAutoSplitLoading] = useState(false);
|
||||
const pollingIntervalRef = useRef<number | null>(null);
|
||||
const analysisPollingRef = useRef<number | null>(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' },
|
||||
}}
|
||||
>
|
||||
<div style={{ borderRadius: 12, overflow: 'hidden', boxShadow: '0 8px 32px rgba(0,0,0,0.3)' }}>
|
||||
<div style={{ borderRadius: 12, overflow: 'hidden', }}>
|
||||
<video
|
||||
ref={previewVideoRef}
|
||||
controls
|
||||
|
||||
Reference in New Issue
Block a user