Files
jnpf_app/utils/define.js
2026-01-23 15:16:31 +08:00

29 lines
1.1 KiB
JavaScript

/* process.env.NODE_ENV设置生产环境模式 */
// #ifndef MP
const baseURL = process.env.NODE_ENV === "production" ? "http://10.0.64.25:48080" : "http://10.28.117.48:48080"
const webSocketUrl = process.env.NODE_ENV === "production" ? "http://10.0.64.25:48080" :
"ws://10.28.117.183:30000/api/message/websocket"
const report = process.env.NODE_ENV === 'production' ? 'http://10.0.64.25:48080' : 'http://10.28.117.183:8200'
const pcURL = process.env.NODE_ENV === 'production' ? 'http://10.0.64.25:48080' : 'http://10.28.117.183:3000'
// #endif
// #ifdef MP
// 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'
// #endif
console.log(process.env.NODE_ENV === "production",'判断环境----------')
const define = {
copyright: "Copyright @ 2025 引迈信息技术有限公司版权所有",
sysVersion: "V6.0",
baseURL, // 接口前缀
report,
pcURL,
webSocketUrl,
comUploadUrl: baseURL,
timeout: 1000000,
aMapWebKey: '',
cipherKey: 'EY8WePvjM5GGwQzn', // 加密key
}
export default define