fix: 修复同步remoteConfig下修改相同配置后,本地不生效的bug
parent
3fe0658d50
commit
295f27384b
|
@ -148,6 +148,9 @@ const configApi = {
|
|||
// 对比默认config的异同
|
||||
// configApi.set(newConfig)
|
||||
const defConfig = configApi.getDefault()
|
||||
if (get().app.remoteConfig.enabled === true) {
|
||||
doMerge(defConfig, configApi.readRemoteConfig())
|
||||
}
|
||||
const saveConfig = doMerge(defConfig, newConfig)
|
||||
fs.writeFileSync(_getConfigPath(), JSON5.stringify(saveConfig, null, 2))
|
||||
configApi.reload()
|
||||
|
|
Loading…
Reference in New Issue