mirror of
https://gitee.com/myxzgzs/boyue_jnpf.git
synced 2025-08-08 15:22:43 +08:00
39 lines
1.8 KiB
JavaScript
39 lines
1.8 KiB
JavaScript
/* process.env.NODE_ENV设置生产环境模式 */
|
|
// #ifndef MP
|
|
const baseURL = process.env.NODE_ENV === "production" ? "http://222.184.49.22:30000" : "http://222.184.49.22:30000"
|
|
const webSocketUrl = process.env.NODE_ENV === "production" ? "ws://222.184.49.22:30000/api/message/websocket" :
|
|
"ws://222.184.49.22:30000/api/message/websocket"
|
|
const report = process.env.NODE_ENV === 'production' ? 'http://222.184.49.22:32000' : 'http://222.184.49.22:32000'
|
|
const flow = process.env.NODE_ENV === 'production' ? 'http://222.184.49.22:31000' : 'http://222.184.49.22:31000'
|
|
|
|
// const baseURL = process.env.NODE_ENV === "production" ? "https://app.java.jnpfsoft.com" : "http://localhost:30000"
|
|
// const webSocketUrl = process.env.NODE_ENV === "production" ? "wss://app.java.jnpfsoft.com/websocket" : "ws://localhost:30000/api/message/websocket"
|
|
// const report = process.env.NODE_ENV === 'production' ? 'https://java.jnpfsoft.com/Report' : 'http://localhost:8200'
|
|
// const flow = process.env.NODE_ENV === 'production' ? 'https://java.jnpfsoft.com' : 'http://localhost:3100'
|
|
// #endif
|
|
|
|
// #ifdef MP
|
|
const baseURL = "http://222.184.49.22:30000"
|
|
const webSocketUrl = "ws://222.184.49.22:30000/api/message/websocket"
|
|
const report = 'http://222.184.49.22:32000'
|
|
const flow = 'http://222.184.49.22:31000'
|
|
|
|
// const baseURL = "http://localhost:30000"
|
|
// const webSocketUrl = "ws://localhost:30000/api/message/websocket"
|
|
// const report = 'http://localhost:8200'
|
|
// const flow = 'http://localhost:3100'
|
|
// #endif
|
|
|
|
const define = {
|
|
copyright: "Copyright @ 2025 博越科技有限公司",
|
|
sysVersion: "V5.2",
|
|
baseURL, // 接口前缀
|
|
report,
|
|
flow,
|
|
webSocketUrl,
|
|
comUploadUrl: baseURL + '/api/file/Uploader/',
|
|
timeout: 1000000,
|
|
aMapWebKey: '59cf8a234b628fc523859e293b7966df',
|
|
cipherKey: 'EY8WePvjM5GGwQzn', // 加密key
|
|
}
|
|
export default define |