头像图床

This commit is contained in:
tangly1024.com
2023-03-13 15:53:39 +08:00
parent 9bd84c5320
commit af31304784

View File

@@ -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
}