From 0b1092dde2314d223d90ec27b095b41690eab1bb Mon Sep 17 00:00:00 2001 From: long <515897141@qq.com> Date: 星期五, 17 九月 2021 17:52:27 +0800 Subject: [PATCH] 调整baseconfig代码顺序 --- src/config/baseConfig.js | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/config/baseConfig.js b/src/config/baseConfig.js index 14e4e7c..003b9e4 100644 --- a/src/config/baseConfig.js +++ b/src/config/baseConfig.js @@ -1,20 +1,18 @@ var isCrossDomain = 1 // 鏄惁璺ㄥ煙 var isTest = 0 // 鏄惁娴嬭瘯 var isMock = 1 // 鏄惁浣跨敤mock +// 绾夸笂闈炶法鍩� +var baseUrl = '//绾夸笂璇锋眰璺緞/' // 鍩虹璺緞(鏈湴闈炶法鍩熻矾寰�) +// 娴嬭瘯闈炶法鍩� +var testBaseUrl = 'http://192.168.31.22:8080/' // 寮�鍙戞祴璇曡矾寰�(鏈湴闈炶法鍩熻矾寰�) -// 鎵撳寘鍚庣殑鐜 +// 鎵撳寘鍚庣殑鐜锛侊紒锛侊紒锛侊紒锛侊紒锛侊紒锛侊紒 if (process.env && process.env.NODE_ENV !== 'development') { baseUrl = '/' isCrossDomain = 0 isTest = 0 isMock = 0 } - -// 绾夸笂闈炶法鍩� -var baseUrl = '//绾夸笂璇锋眰璺緞/' // 鍩虹璺緞(鏈湴闈炶法鍩熻矾寰�) - -// 娴嬭瘯闈炶法鍩� -var testBaseUrl = 'http://192.168.31.22:8080/' // 寮�鍙戞祴璇曡矾寰�(鏈湴闈炶法鍩熻矾寰�) // 绾夸笂璺ㄥ煙 var cdBaseUrl = { -- Gitblit v1.8.0