mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix(plugin-md-power): fix timeout issue when retrieving image size
This commit is contained in:
parent
7234eebe7e
commit
f2fe79f923
@ -233,11 +233,11 @@ async function getAllImageOriginalSize(
|
||||
): Promise<Record<string, ImgSize>> {
|
||||
const result: Record<string, ImgSize> = {}
|
||||
|
||||
await pMap(images, async (src) => {
|
||||
for (const src of images) {
|
||||
const size = await getImageOriginalSize(src, includeRemote)
|
||||
if (size)
|
||||
result[src] = size
|
||||
}, { concurrency: 64 })
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user