mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-22 07:26:48 +00:00
{配置兼容性}
This commit is contained in:
@@ -6,7 +6,7 @@ import formatDate from '../utils/formatDate'
|
||||
import md5 from 'js-md5'
|
||||
import { siteConfig } from '../config'
|
||||
import {
|
||||
checkContainHttp,
|
||||
checkStartWithHttp,
|
||||
convertUrlStartWithOneSlash,
|
||||
sliceUrlFromHttp
|
||||
} from '../utils'
|
||||
@@ -197,7 +197,7 @@ export function adjustPageProperties(properties, NOTION_CONFIG) {
|
||||
}
|
||||
|
||||
// 检查处理外链
|
||||
properties.href = checkContainHttp(properties?.href)
|
||||
properties.href = checkStartWithHttp(properties?.href)
|
||||
? sliceUrlFromHttp(properties?.href)
|
||||
: convertUrlStartWithOneSlash(properties?.href)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user