代码格式化

This commit is contained in:
tangly1024.com
2024-09-27 16:11:23 +08:00
parent 60fc788d4b
commit 3d68b35cb6

View File

@@ -6,9 +6,9 @@ import formatDate from '../utils/formatDate'
import md5 from 'js-md5'
import { siteConfig } from '../config'
import {
checkStartWithHttp,
convertUrlStartWithOneSlash,
getLastSegmentFromUrl
checkStartWithHttp,
convertUrlStartWithOneSlash,
getLastSegmentFromUrl
} from '../utils'
import { extractLangPrefix } from '../utils/pageId'
import { mapImgUrl } from './mapImage'
@@ -291,9 +291,9 @@ function generateCustomizeSlug(postProperties, NOTION_CONFIG) {
fullPrefix = fullPrefix.substring(0, fullPrefix.length - 1) // 去掉尾部部的"/"
}
if(fullPrefix){
if (fullPrefix) {
return `${fullPrefix}/${postProperties.slug ?? postProperties.id}`
}else{
} else {
return `${postProperties.slug ?? postProperties.id}`
}
}