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