From 295f27384be8f93188067940668175a9f4242a2b Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 12 Nov 2021 20:21:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=90=8C=E6=AD=A5remo?= =?UTF-8?q?teConfig=E4=B8=8B=E4=BF=AE=E6=94=B9=E7=9B=B8=E5=90=8C=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=90=8E=EF=BC=8C=E6=9C=AC=E5=9C=B0=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/config.js b/packages/core/src/config.js index 6287c87f..42eeebbf 100644 --- a/packages/core/src/config.js +++ b/packages/core/src/config.js @@ -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()