From af3130478469274142f4ef836572cddab400535f Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 13 Mar 2023 15:53:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B4=E5=83=8F=E5=9B=BE=E5=BA=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/notion/mapImage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/notion/mapImage.js b/lib/notion/mapImage.js index 523980ae..03cfc62f 100644 --- a/lib/notion/mapImage.js +++ b/lib/notion/mapImage.js @@ -1,7 +1,7 @@ import BLOG from '@/blog.config' /** - * Notion图片映射处理有emjji的图标 + * Notion图片映射处理有emoji的图标 * @param {*} img * @param {*} value * @returns @@ -20,7 +20,7 @@ const mapImgUrl = (img, block, type = 'block') => { } // notion永久图床地址 - if (!ret && img.indexOf('secure.notion-static.com') > 0 && BLOG.IMG_URL_TYPE === 'Notion') { + if (!ret && img.indexOf('secure.notion-static.com') > 0 && (BLOG.IMG_URL_TYPE === 'Notion' || type === 'block')) { ret = 'https://www.notion.so/image/' + encodeURIComponent(img) + '?table=' + type + '&id=' + block.id }