feat(web): 同步预约演示与兜底渠道优化

This commit is contained in:
qiubaishen
2026-11-23 17:54:37 +08:00
parent 45979985fe
commit 574b6efa1e
11 changed files with 361 additions and 79 deletions
+3 -1
View File
@@ -569,6 +569,7 @@ export const useVideoGeneration = ({ disableQuote = false } = {}) => {
const res = await API.get('/api/video/tasks', {
params: { p: query.page, page_size: query.pageSize },
skipErrorHandler: true,
disableDuplicate: true,
});
// 快速翻页时只采纳最后一次请求的结果
if (requestId !== taskRequestRef.current || !mountedRef.current) return;
@@ -811,6 +812,7 @@ export const useVideoGeneration = ({ disableQuote = false } = {}) => {
);
}
trackTasks([task.task_id]);
loadTasks();
}
showInfo(t('视频生成任务已提交,请稍候...'));
return true;
@@ -837,7 +839,7 @@ export const useVideoGeneration = ({ disableQuote = false } = {}) => {
setSubmitting(false);
}
},
[selectedModel, trackTasks, t],
[selectedModel, trackTasks, loadTasks, t],
);
const handleGenerate = useCallback(async () => {