1
This commit is contained in:
@@ -225,4 +225,4 @@ async function processTable(config: PlatformFieldConfig, rootDom: ParentNode) {
|
||||
}
|
||||
|
||||
return allTableData;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -225,6 +225,10 @@ async function runCrawlSteps(platform: PlatformConfig, initialState: CrawlTaskSt
|
||||
status: 'completed',
|
||||
steps: state.steps.map((step) => (step.status === 'running' ? { ...step, status: 'success' } : step)),
|
||||
}));
|
||||
|
||||
await chrome.windows.remove(initialState.windowId).catch((error: unknown) => {
|
||||
console.warn('[crawl] 爬取完成后关闭窗口失败', error);
|
||||
});
|
||||
} catch (error: unknown) {
|
||||
console.error('[crawl] 执行失败', error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user