Skip to content

Commit

Permalink
fix: #639 duplicate images in pic list
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Dec 11, 2024
1 parent 142486c commit 4b01c7e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export const usePicgoInitPage = (props: any, deps: any) => {
retImgs = retImgs.concat(retImgsWithBlockId)
})
// 去重
retImgs = [...new Set([...retImgs])]
// retImgs = [...new Set([...retImgs])]
retImgs = retImgs.filter((item, index, self) => index === self.findIndex((t) => t.url === item.url))
logger.debug("解析出来的所有的图片地址=>", retImgs)

// 将字符串数组格式的图片信息转换成图片对象数组
Expand Down

0 comments on commit 4b01c7e

Please sign in to comment.