From 8ecc12076676d920fba49953d3707d6fcf0ed272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Wed, 15 Jan 2025 16:23:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/src/config.js b/packages/core/src/config.js index 1a04f4b..983edc9 100644 --- a/packages/core/src/config.js +++ b/packages/core/src/config.js @@ -110,7 +110,7 @@ const configApi = { let remoteConfig try { remoteConfig = jsonApi.parse(body) - } catch (e) { + } catch { log.error(`远程配置内容格式不正确, url: ${remoteConfigUrl}, body: ${body}`) remoteConfig = null } @@ -212,7 +212,6 @@ const configApi = { doDiff: mergeApi.doDiff, /** * 读取 config.json 后,合并配置 - * @returns {*} */ reload () { const configPath = _getConfigPath()