修复已知bug

This commit is contained in:
tangly1024.com
2024-05-07 17:11:19 +08:00
parent 7b20d37af2
commit a8bf116c83
4 changed files with 51 additions and 30 deletions

View File

@@ -31,7 +31,6 @@ export const siteConfig = (key, defaultVal = null, extendConfig = null) => {
if (global) {
val = global.NOTION_CONFIG?.[key]
siteInfo = global.siteInfo
// console.log('当前变量', key, val)
}
if (!val) {
@@ -56,6 +55,9 @@ export const siteConfig = (key, defaultVal = null, extendConfig = null) => {
if (!val && extendConfig) {
val = extendConfig[key]
}
if (extendConfig) {
console.log('extendConfig', extendConfig[key])
}
// 其次 NOTION没有找到配置则会读取blog.config.js文件
if (!val) {