Files
app-govern/common/js/config.js
2023-08-17 15:37:19 +08:00

22 lines
431 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const debug = true // true 是连地服务端本地false 是连接线上
const development = {
domain: 'http://192.168.1.115:10215',
}
const production = {
domain: 'http://192.168.1.13:10215',
}
const config = debug ? development : production
// #ifdef H5
if (process.env.NODE_ENV === 'development') {
config.domain = '/api'
} else {
config.domain = window.location.origin
}
// #endif
export default config