From f84ee2c0436617048ed3457a4dfe5582fc140539 Mon Sep 17 00:00:00 2001
From: long <515897141@qq.com>
Date: 星期一, 13 九月 2021 11:54:00 +0800
Subject: [PATCH] 功能列表展示页添加 导出模板 按钮

---
 src/config/baseConfig.js |   21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/src/config/baseConfig.js b/src/config/baseConfig.js
index 4668a9b..14e4e7c 100644
--- a/src/config/baseConfig.js
+++ b/src/config/baseConfig.js
@@ -1,19 +1,20 @@
-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
 
 // 鎵撳寘鍚庣殑鐜
-if (baseUrl.env && baseUrl.env.NODE_ENV !== 'development') {
+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 = {
@@ -21,6 +22,7 @@
   url: 'https://绾夸笂璇锋眰璺緞/',
   tip: '鍙湪鏍圭洰褰昪onfig/index.js淇敼绾夸笂璺緞'
 }
+
 // 娴嬭瘯璺ㄥ煙
 var cdTestBaseUrl = {
   name: '/api_test/',
@@ -48,6 +50,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