define.js 1.1 KB

1234567891011121314151617181920212223242526272829
  1. /* process.env.NODE_ENV设置生产环境模式 */
  2. // #ifndef MP
  3. const baseURL = process.env.NODE_ENV === "production" ? "http://121.41.4.166:1113" : "http://121.41.4.166:1113"
  4. const webSocketUrl = process.env.NODE_ENV === "production" ? "ws://121.41.4.166:1113/websocket" :
  5. "ws://192.168.10.196:30000/api/message/websocket"
  6. const report = process.env.NODE_ENV === 'production' ? 'http://121.41.4.166:1113/Report' : 'http://localhost:8200'
  7. const flow = process.env.NODE_ENV === 'production' ? 'http://121.41.4.166:1113' : 'http://localhost:3100'
  8. // #endif
  9. // #ifdef MP
  10. const baseURL = "http://192.168.10.196:30000"
  11. const webSocketUrl = "ws://192.168.10.196:30000/api/message/websocket"
  12. const report = 'http://localhost:8200'
  13. const flow = 'http://localhost:3100'
  14. // #endif
  15. const define = {
  16. copyright: "Copyright @ 2024 永天科技股份有限公司版权所有",
  17. sysVersion: "V5.2",
  18. baseURL, // 接口前缀
  19. report,
  20. flow,
  21. webSocketUrl,
  22. comUploadUrl: baseURL + '/api/file/Uploader/',
  23. timeout: 1000000,
  24. aMapWebKey: '09485f01587712b3c04e5a9abf324237',
  25. cipherKey: 'EY8WePvjM5GGwQzn', // 加密key
  26. }
  27. export default define