1234567891011121314151617181920212223242526272829 |
- /* process.env.NODE_ENV设置生产环境模式 */
- // #ifndef MP
- const baseURL = process.env.NODE_ENV === "production" ? "http://121.41.4.166:1113" : "http://121.41.4.166:1113"
- const webSocketUrl = process.env.NODE_ENV === "production" ? "ws://121.41.4.166:1113/websocket" :
- "ws://192.168.10.196:30000/api/message/websocket"
- const report = process.env.NODE_ENV === 'production' ? 'http://121.41.4.166:1113/Report' : 'http://localhost:8200'
- const flow = process.env.NODE_ENV === 'production' ? 'http://121.41.4.166:1113' : 'http://localhost:3100'
- // #endif
- // #ifdef MP
- const baseURL = "http://192.168.10.196:30000"
- const webSocketUrl = "ws://192.168.10.196:30000/api/message/websocket"
- const report = 'http://localhost:8200'
- const flow = 'http://localhost:3100'
- // #endif
- const define = {
- copyright: "Copyright @ 2024 永天科技股份有限公司版权所有",
- sysVersion: "V5.2",
- baseURL, // 接口前缀
- report,
- flow,
- webSocketUrl,
- comUploadUrl: baseURL + '/api/file/Uploader/',
- timeout: 1000000,
- aMapWebKey: '09485f01587712b3c04e5a9abf324237',
- cipherKey: 'EY8WePvjM5GGwQzn', // 加密key
- }
- export default define
|