From 1c44ea4ef238e841b61b4b0d3d2861141f1bf562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=99=8C?= Date: Thu, 24 Aug 2023 17:24:16 +0800 Subject: [PATCH] no message --- src/config/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config/index.js b/src/config/index.js index 09b5f4e..ea51280 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -56,5 +56,8 @@ const DEFAULT_CONFIG = { } // 如果生产模式,就合并动态的APP_CONFIG // public/config.js -Object.assign(DEFAULT_CONFIG, APP_CONFIG) +if (typeof APP_CONFIG !== 'undefined' && APP_CONFIG !== null) { + Object.assign(DEFAULT_CONFIG, APP_CONFIG); +} + export default DEFAULT_CONFIG \ No newline at end of file