mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-22 23:16:48 +00:00
修复已知的图片加载问题
This commit is contained in:
@@ -60,7 +60,7 @@ const mapImgUrl = (img, block, type = 'block', from = 'post') => {
|
||||
}
|
||||
|
||||
// 图片url优化,确保每一篇文章的图片url唯一
|
||||
if (ret && ret.length > 4) {
|
||||
if (ret && !ret.includes('https://www.notion.so/images/')) {
|
||||
// 图片接口拼接唯一识别参数,防止请求的图片被缓,而导致随机结果相同
|
||||
const separator = ret.includes('?') ? '&' : '?'
|
||||
ret = `${ret.trim()}${separator}t=${block.id}`
|
||||
|
||||
Reference in New Issue
Block a user