29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
/* process.env.NODE_ENV设置生产环境模式 */
|
|
// #ifndef MP
|
|
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 pcURL = process.env.NODE_ENV === 'production' ? 'https://java.jnpfsoft.com' : 'http://localhost:3000'
|
|
// #endif
|
|
|
|
// #ifdef MP
|
|
const baseURL = "http://localhost:30000"
|
|
const webSocketUrl = "ws://localhost:30000/api/message/websocket"
|
|
const report = 'http://localhost:8200'
|
|
const pcURL = 'http://localhost:3000'
|
|
// #endif
|
|
|
|
const define = {
|
|
copyright: "Copyright @ 2025 引迈信息技术有限公司版权所有",
|
|
sysVersion: "V6.0",
|
|
baseURL, // 接口前缀
|
|
report,
|
|
pcURL,
|
|
webSocketUrl,
|
|
comUploadUrl: baseURL + '/api/file/Uploader/',
|
|
timeout: 1000000,
|
|
aMapWebKey: '',
|
|
cipherKey: 'EY8WePvjM5GGwQzn', // 加密key
|
|
}
|
|
export default define |