mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-05 23:16:52 +00:00
图片地址兼容性
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import BLOG from '@/blog.config'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notion图片映射处理有emjji的图标
|
* Notion图片映射处理有emjji的图标
|
||||||
* @param {*} img
|
* @param {*} img
|
||||||
@@ -18,7 +20,7 @@ const mapImgUrl = (img, block, type = 'block') => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// notion永久图床地址
|
// notion永久图床地址
|
||||||
if (!ret && img.indexOf('secure.notion-static.com') > 0) {
|
if (!ret && img.indexOf('secure.notion-static.com') > 0 && BLOG.IMG_URL_TYPE === 'Notion') {
|
||||||
ret = 'https://www.notion.so/image/' + encodeURIComponent(img) + '?table=' + type + '&id=' + block.id
|
ret = 'https://www.notion.so/image/' + encodeURIComponent(img) + '?table=' + type + '&id=' + block.id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user