2026-01-04 11:09:06 +08:00
|
|
|
/* process.env.NODE_ENV设置生产环境模式 */
|
|
|
|
|
// #ifndef MP
|
2026-01-25 20:22:58 +08:00
|
|
|
const baseURL = process.env.NODE_ENV === "production" ? "http://10.0.64.25:48080" : "http://10.0.64.25:48080"
|
2026-01-23 15:16:31 +08:00
|
|
|
const webSocketUrl = process.env.NODE_ENV === "production" ? "http://10.0.64.25:48080" :
|
2026-01-25 20:22:58 +08:00
|
|
|
"ws://10.0.64.25:48080/api/message/websocket"
|
|
|
|
|
const report = process.env.NODE_ENV === 'production' ? 'http://10.0.64.25:48080' : 'http://10.0.64.25:48080'
|
|
|
|
|
const pcURL = process.env.NODE_ENV === 'production' ? 'http://10.0.64.25:48080' : 'http://10.0.64.25:48080'
|
2026-01-04 11:09:06 +08:00
|
|
|
// #endif
|
|
|
|
|
|
|
|
|
|
// #ifdef MP
|
2026-01-23 15:16:31 +08:00
|
|
|
// const baseURL = "http://10.28.117.48:30000"
|
|
|
|
|
// const webSocketUrl = "ws://10.28.117.183:30000/api/message/websocket"
|
|
|
|
|
// const report = 'http://10.28.117.183:8200'
|
|
|
|
|
// const pcURL = 'http://10.28.117.183:3000'
|
2026-01-04 11:09:06 +08:00
|
|
|
// #endif
|
2026-01-23 15:16:31 +08:00
|
|
|
console.log(process.env.NODE_ENV === "production",'判断环境----------')
|
2026-01-04 11:09:06 +08:00
|
|
|
const define = {
|
2026-01-25 20:22:58 +08:00
|
|
|
copyright: "Copyright @ 2026 软通动力",
|
2026-01-04 11:09:06 +08:00
|
|
|
sysVersion: "V6.0",
|
|
|
|
|
baseURL, // 接口前缀
|
|
|
|
|
report,
|
|
|
|
|
pcURL,
|
|
|
|
|
webSocketUrl,
|
2026-01-23 11:09:28 +08:00
|
|
|
comUploadUrl: baseURL,
|
2026-01-04 11:09:06 +08:00
|
|
|
timeout: 1000000,
|
|
|
|
|
aMapWebKey: '',
|
|
|
|
|
cipherKey: 'EY8WePvjM5GGwQzn', // 加密key
|
|
|
|
|
}
|
|
|
|
|
export default define
|