We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa19956 commit 17ef66dCopy full SHA for 17ef66d
src/api.ts
@@ -414,6 +414,9 @@ function loaderCommonConfigToCrawlConfig(
414
const urls = detail.proxy!.urls
415
detail.proxyUrl = urls[0]
416
detail.proxyDetails = urls.map((url) => ({ url, state: true }))
417
+ } else {
418
+ // 默认值
419
+ detail.proxyDetails = []
420
}
421
422
// 1.6.priority
src/controller.ts
@@ -95,10 +95,7 @@ export async function controller<
95
)
96
const detailTargetConfigs = isPriorityCrawl
97
? priorityQueueMergeSort(
98
- detailTargets.map((item) => ({
99
- ...item,
100
- valueOf: () => item.priority
101
- }))
+ detailTargets.map((item) => ({ ...item, valueOf: () => item.priority }))
102
103
: detailTargets
104
0 commit comments