heo 配置兼容性

This commit is contained in:
tangly1024
2024-06-15 10:33:54 +08:00
parent ef497804f6
commit 2e983e4876
2 changed files with 15 additions and 6 deletions

View File

@@ -32,6 +32,8 @@ export const siteConfig = (key, defaultVal = null, extendConfig = {}) => {
case 'POST_LIST_STYLE':
case 'POST_LIST_PREVIEW':
case 'POST_URL_PREFIX_MAPPING_CATEGORY':
case 'IS_TAG_COLOR_DISTINGUISHED':
case 'TAG_SORT_BY_COUNT':
return convertVal(extendConfig[key] || defaultVal || BLOG[key])
default:
}