fix(修复错误调用React HOOK的问题):

(cherry picked from commit c22114a0332dda440e7b12a4cf726af86d5e1c7d)
This commit is contained in:
anime
2024-12-03 20:16:41 +08:00
parent d500cff483
commit 17a8fd7332

View File

@@ -38,6 +38,9 @@ export const siteConfig = (key, defaultVal = null, extendConfig = {}) => {
case 'TAG_SORT_BY_COUNT':
case 'THEME':
case 'LINK':
case 'NPM_CDN_BASE':
case 'CDNJS_CDN_BASE':
case 'JSDELIVR_CDN_BASE':
// LINK比较特殊
if (key === 'LINK') {
if (!extendConfig || Object.keys(extendConfig).length === 0) {