link 修复

This commit is contained in:
tangly1024.com
2024-12-02 13:33:15 +08:00
parent ffe78a57cd
commit 3078c6b4fa
2 changed files with 7 additions and 1 deletions

View File

@@ -38,6 +38,12 @@ export const siteConfig = (key, defaultVal = null, extendConfig = {}) => {
case 'TAG_SORT_BY_COUNT':
case 'THEME':
case 'LINK':
// LINK比较特殊
if (key === 'LINK') {
if (!extendConfig || Object.keys(extendConfig).length === 0) {
break
}
}
return convertVal(
getValue(extendConfig[key], getValue(defaultVal, BLOG[key]))
)