Commit e4ac23e03b5bf0a288b7af86ad44a776e89c104e

Authored by fengtao
1 parent 1f1fd48c

fix:移除node自带判断环境

Showing 1 changed file with 4 additions and 15 deletions
1 import { 1 import {
2 getTabbarHeight 2 getTabbarHeight
3 } from '@/plugins/utils'; 3 } from '@/plugins/utils';
4 -let baseUrl = "";  
5 -let baseDrawioUrl = ""  
6 -if (process.env.NODE_ENV === 'development') {  
7 - // 开发环境  
8 - // baseUrl = 'http://192.168.10.115:8080/api'  
9 - baseUrl = 'https://dev.thingskit.com/api'  
10 - baseDrawioUrl = 'https://dev.thingskit.com/thingskit-drawio'  
11 -} else if (process.env.NODE_ENV === 'production') {  
12 - // 生产环境  
13 - // baseUrl = 'http://47.99.141.212:8080/api'  
14 - baseUrl = 'https://dev.thingskit.com/api'  
15 - baseDrawioUrl = 'https://dev.thingskit.com/thingskit-drawio'  
16 -} 4 +let baseUrl = "https://dev.thingskit.com/api";
  5 +let baseDrawioUrl = "https://dev.thingskit.com/thingskit-drawio"
17 6
18 let systemInfo = { 7 let systemInfo = {
19 ...getTabbarHeight(), 8 ...getTabbarHeight(),
@@ -42,8 +31,8 @@ systemInfo.platform = 'plus' @@ -42,8 +31,8 @@ systemInfo.platform = 'plus'
42 console.log(systemInfo, 'systemInfo') 31 console.log(systemInfo, 'systemInfo')
43 const courtConfig = { 32 const courtConfig = {
44 publicAppId: '', //公众号appId 33 publicAppId: '', //公众号appId
45 - baseUrl: baseUrl, //域名  
46 - baseDrawioUrl: baseDrawioUrl, 34 + baseUrl, //域名
  35 + baseDrawioUrl,
47 systemInfo: systemInfo, //系统信息 36 systemInfo: systemInfo, //系统信息
48 mapData: { 37 mapData: {
49 key: '', //地图key 38 key: '', //地图key