From 89cecff4f95a1f6a4454552b5749aaa02ce93f87 Mon Sep 17 00:00:00 2001 From: children117cl <278950112@qq.com> Date: 星期三, 14 四月 2021 11:38:22 +0800 Subject: [PATCH] banner上传突破,需要描述尺寸 --- src/config/baseConfig.js | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/config/baseConfig.js b/src/config/baseConfig.js index 1b387f0..92069cb 100644 --- a/src/config/baseConfig.js +++ b/src/config/baseConfig.js @@ -1,16 +1,13 @@ -var baseUrl = '//绾夸笂璇锋眰璺緞/' // 鍩虹璺緞 -var testBaseUrl = 'http://192.168.31.22:8080/' // 寮�鍙戞祴璇曡矾寰� -// var testBaseUrl = 'http://192.168.1.163:8080/'; // 寮�鍙戞祴璇曡矾寰� -// var testBaseUrl = 'http://192.168.31.143:8080/' // 寮�鍙戞祴璇曡矾寰� - 鍜� -// var testBaseUrl = 'http://192.168.31.143:8888/'; // 寮�鍙戞祴璇曡矾寰� - 鍜� +var baseUrl = '//绾夸笂璇锋眰璺緞/' // 鍩虹璺緞(鏈湴闈炶法鍩熻矾寰�) +var testBaseUrl = 'http://192.168.31.22:8080/' // 寮�鍙戞祴璇曡矾寰�(鏈湴闈炶法鍩熻矾寰�) var isCrossDomain = 1 // 鏄惁璺ㄥ煙 var isTest = 0 // 鏄惁娴嬭瘯 var isMock = 1 // 鏄惁浣跨敤mock // 鎵撳寘鍚庣殑鐜 -if (baseUrl.env.NODE_ENV !== 'development') { - baseUrl = '/'; - isCrossDomain = 0; +if (baseUrl.env && baseUrl.env.NODE_ENV !== 'development') { + baseUrl = '/' + isCrossDomain = 0 isTest = 0 isMock = 0 } @@ -48,6 +45,13 @@ console.log('鏈杩愯鐨勬湇鍔″櫒鍩熷悕: ', baseUrl) } +var style_tx = 'font-weight:bold;font-size: 40px' +if (isMock) { + console.log('%cNow is in mock mode', style_tx) +} else if (isTest) { + console.log('%cNow is in test mode', style_tx) +} + export { baseUrl, isCrossDomain, isMock } // modules.export={ // baseUrl -- Gitblit v1.8.0