Showing
1 changed file
with
4 additions
and
15 deletions
| 1 | 1 | import { |
| 2 | 2 | getTabbarHeight |
| 3 | 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 | 7 | let systemInfo = { |
| 19 | 8 | ...getTabbarHeight(), |
| ... | ... | @@ -42,8 +31,8 @@ systemInfo.platform = 'plus' |
| 42 | 31 | console.log(systemInfo, 'systemInfo') |
| 43 | 32 | const courtConfig = { |
| 44 | 33 | publicAppId: '', //公众号appId |
| 45 | - baseUrl: baseUrl, //域名 | |
| 46 | - baseDrawioUrl: baseDrawioUrl, | |
| 34 | + baseUrl, //域名 | |
| 35 | + baseDrawioUrl, | |
| 47 | 36 | systemInfo: systemInfo, //系统信息 |
| 48 | 37 | mapData: { |
| 49 | 38 | key: '', //地图key | ... | ... |