bugfix: 修复配置读取失败的问题。

pull/274/head
王良 2024-02-21 12:29:32 +08:00
parent d0096d209c
commit 92c580c487
1 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,7 @@ const configApi = {
get,
set (newConfig) {
if (newConfig == null) {
return
return configTarget
}
const merged = lodash.cloneDeep(defConfig)
@ -161,6 +161,7 @@ const configApi = {
mergeApi.deleteNullItems(merged)
configTarget = merged
log.info('加载配置完成')
return configTarget
},
getDefault () {