diff --git a/lib/notion/mapImage.js b/lib/notion/mapImage.js index 6d070dab..523980ae 100644 --- a/lib/notion/mapImage.js +++ b/lib/notion/mapImage.js @@ -1,3 +1,5 @@ +import BLOG from '@/blog.config' + /** * Notion图片映射处理有emjji的图标 * @param {*} img @@ -18,7 +20,7 @@ const mapImgUrl = (img, block, type = 'block') => { } // 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 }