修复Config在主题文件中不生效的bug

This commit is contained in:
tangly1024.com
2023-11-20 16:56:53 +08:00
parent 27589ab7d1
commit b36ce75aad

View File

@@ -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 {