mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
修复Config在主题文件中不生效的bug
This commit is contained in:
@@ -63,6 +63,9 @@ export const siteConfig = (key, defaultVal = null, extendConfig = null) => {
|
||||
return defaultVal
|
||||
} else {
|
||||
if (typeof val === 'string') {
|
||||
if (val === 'true' || val === 'false') {
|
||||
return JSON.parse(val);
|
||||
}
|
||||
return val;
|
||||
} else {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user