You've already forked DataMate
fix(data-management): 修复文件预览状态检查逻辑
- 移除 PENDING 状态的预览轮询检查 - 避免在 PENDING 状态下重复轮询导致的性能问题 - 优化预览加载状态管理流程
This commit is contained in:
@@ -175,7 +175,7 @@ export function useFilesOperation(dataset: Dataset) {
|
|||||||
setPreviewLoading(false);
|
setPreviewLoading(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (currentStatus === "PROCESSING" || currentStatus === "PENDING") {
|
if (currentStatus === "PROCESSING") {
|
||||||
pollOfficePreviewStatus(datasetId, file.id, 0);
|
pollOfficePreviewStatus(datasetId, file.id, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user