From 88ed5f3feaee8b43abcf7811362d11ffd1fcbd16 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Fri, 10 Mar 2023 15:12:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=9C=B0=E5=9D=80=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/notion/mapImage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }