From a4b91616ceae752e11cb6fc5198ebadf52cd68ed Mon Sep 17 00:00:00 2001 From: jazz <jazzxhunter@163.com> Date: 星期三, 24 八月 2022 16:05:15 +0800 Subject: [PATCH] update_202208241604_下载模板修改链接 --- src/config/baseConfig.js | 36 ++++++++++++++++++++++-------------- 1 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/config/baseConfig.js b/src/config/baseConfig.js index d27a604..bbade5c 100644 --- a/src/config/baseConfig.js +++ b/src/config/baseConfig.js @@ -1,18 +1,17 @@ -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 isCrossDomain = 1 // 鏄惁璺ㄥ煙 -var isTest = 0 // 鏄惁娴嬭瘯 -var isMock = 1 // 鏄惁浣跨敤mock +var isTest = 1 // 鏄惁娴嬭瘯 +var isMock = 0 // 鏄惁浣跨敤mock +// 绾夸笂闈炶法鍩� +var baseUrl = '//绾夸笂璇锋眰璺緞/' // 鍩虹璺緞(鏈湴闈炶法鍩熻矾寰�) +// 娴嬭瘯闈炶法鍩� +var testBaseUrl = 'http://192.168.31.22:8080/' // 寮�鍙戞祴璇曡矾寰�(鏈湴闈炶法鍩熻矾寰�) -// 鎵撳寘鍚庣殑鐜 -if (process.env.NODE_ENV !== 'development') { - testBaseUrl = '/'; - isCrossDomain = 0; - isTest = 0 - isMock = 0 +// 鎵撳寘鍚庣殑鐜锛侊紒锛侊紒锛侊紒锛侊紒锛侊紒锛侊紒 +if (process.env && process.env.NODE_ENV !== 'development') { + baseUrl = '/sms-admin/' + isCrossDomain = 0 + isTest = 0 + isMock = 0 } // 绾夸笂璺ㄥ煙 @@ -21,10 +20,12 @@ url: 'https://绾夸笂璇锋眰璺緞/', tip: '鍙湪鏍圭洰褰昪onfig/index.js淇敼绾夸笂璺緞' } + // 娴嬭瘯璺ㄥ煙 var cdTestBaseUrl = { name: '/api_test/', - url: 'http://192.168.31.22:8080/', + // url: 'http://192.168.2.106:3602/sms', // - 鍏� + url: 'https://sms.phiskin.com/sms-admin', // - 绾夸笂 // url: 'http://192.168.1.163:8080/', // url: 'http://192.168.31.143:8080/', // - 鍜� // url: 'http://192.168.31.143:8888/', // - 鍜� @@ -48,6 +49,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