背景压缩
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
|
VITE_USE_MOCK=false
|
||||||
# Encryption disabled for dev — enable in production
|
# Encryption disabled for dev — enable in production
|
||||||
VITE_ENCRYPTION_KEY=
|
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 [splitLoading, setSplitLoading] = useState(false);
|
||||||
const [autoSplitLoading, setAutoSplitLoading] = useState(false);
|
const [autoSplitLoading, setAutoSplitLoading] = useState(false);
|
||||||
const pollingIntervalRef = useRef<number | null>(null);
|
const pollingIntervalRef = useRef<number | null>(null);
|
||||||
|
const analysisPollingRef = useRef<number | null>(null);
|
||||||
|
|
||||||
const videoUrl = useMemo(() => buildAssetUrl(taskDetail?.videoUrl), [taskDetail?.videoUrl]);
|
const videoUrl = useMemo(() => buildAssetUrl(taskDetail?.videoUrl), [taskDetail?.videoUrl]);
|
||||||
|
|
||||||
@@ -143,6 +144,10 @@ function RemoveInfo() {
|
|||||||
clearInterval(pollingIntervalRef.current);
|
clearInterval(pollingIntervalRef.current);
|
||||||
pollingIntervalRef.current = null;
|
pollingIntervalRef.current = null;
|
||||||
}
|
}
|
||||||
|
if (analysisPollingRef.current) {
|
||||||
|
clearInterval(analysisPollingRef.current);
|
||||||
|
analysisPollingRef.current = null;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}, [refreshPageData]);
|
}, [refreshPageData]);
|
||||||
|
|
||||||
@@ -152,7 +157,7 @@ function RemoveInfo() {
|
|||||||
if (taskDetail.analysisStatus === 'processing') {
|
if (taskDetail.analysisStatus === 'processing') {
|
||||||
console.log("开始轮询");
|
console.log("开始轮询");
|
||||||
|
|
||||||
pollingIntervalRef.current = window.setInterval(async () => {
|
analysisPollingRef.current = window.setInterval(async () => {
|
||||||
try {
|
try {
|
||||||
const res = await getShotReplicationDetail(creatID);
|
const res = await getShotReplicationDetail(creatID);
|
||||||
setTaskDetail(res);
|
setTaskDetail(res);
|
||||||
@@ -160,16 +165,16 @@ function RemoveInfo() {
|
|||||||
}
|
}
|
||||||
}, 3000);
|
}, 3000);
|
||||||
} else {
|
} else {
|
||||||
if (pollingIntervalRef.current) {
|
if (analysisPollingRef.current) {
|
||||||
clearInterval(pollingIntervalRef.current);
|
clearInterval(analysisPollingRef.current);
|
||||||
pollingIntervalRef.current = null;
|
analysisPollingRef.current = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
if (pollingIntervalRef.current) {
|
if (analysisPollingRef.current) {
|
||||||
clearInterval(pollingIntervalRef.current);
|
clearInterval(analysisPollingRef.current);
|
||||||
pollingIntervalRef.current = null;
|
analysisPollingRef.current = null;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, [taskDetail?.analysisStatus, creatID]);
|
}, [taskDetail?.analysisStatus, creatID]);
|
||||||
@@ -1011,11 +1016,11 @@ function RemoveInfo() {
|
|||||||
width={640}
|
width={640}
|
||||||
centered
|
centered
|
||||||
styles={{
|
styles={{
|
||||||
body: { padding: 24, background: '#0f172a' },
|
body: { padding: 24, },
|
||||||
header: { background: '#1e293b', borderBottom: 'none', padding: '20px 24px' },
|
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
|
<video
|
||||||
ref={previewVideoRef}
|
ref={previewVideoRef}
|
||||||
controls
|
controls
|
||||||
|
|||||||
Reference in New Issue
Block a user