mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
fix(修复错误调用React HOOK的问题):
(cherry picked from commit c22114a0332dda440e7b12a4cf726af86d5e1c7d)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user