fix:修复config合并问题

This commit is contained in:
Jerry 2025-10-04 13:46:40 +08:00
parent 9ed695dca2
commit 1b2d78b56c

View File

@ -69,9 +69,6 @@ async function init() {
logger.warn(`[crystelf-admin] 读取配置文件 ${file} 失败:`, e); logger.warn(`[crystelf-admin] 读取配置文件 ${file} 失败:`, e);
} }
} }
if (!Array.isArray(configCache)) {
configCache = fc.mergeConfig(configCache, defaultConfig);
}
if (configCache.debug) { if (configCache.debug) {
logger.info('[crystelf-admin] 配置模块初始化成功..'); logger.info('[crystelf-admin] 配置模块初始化成功..');
} }