From c38a86b49c8a8f97e196894ed53d084c323be4ff Mon Sep 17 00:00:00 2001 From: long <515897141@qq.com> Date: 星期一, 11 一月 2021 11:35:03 +0800 Subject: [PATCH] 修复打包后修改baseUrl --- src/config/baseConfig.js | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config/baseConfig.js b/src/config/baseConfig.js index d27a604..1b387f0 100644 --- a/src/config/baseConfig.js +++ b/src/config/baseConfig.js @@ -8,11 +8,11 @@ var isMock = 1 // 鏄惁浣跨敤mock // 鎵撳寘鍚庣殑鐜 -if (process.env.NODE_ENV !== 'development') { - testBaseUrl = '/'; - isCrossDomain = 0; - isTest = 0 - isMock = 0 +if (baseUrl.env.NODE_ENV !== 'development') { + baseUrl = '/'; + isCrossDomain = 0; + isTest = 0 + isMock = 0 } // 绾夸笂璺ㄥ煙 -- Gitblit v1.8.0