Files
app-govern/common/js/config.js

27 lines
536 B
JavaScript
Raw Normal View History

2023-01-11 16:33:13 +08:00
const debug = false // true 是连地服务端本地false 是连接线上
const development = {
domain: 'http://192.168.1.60:8094',
STATIC: '',
tenantId: 'rocanOA',
}
const production = {
domain: 'http://192.168.1.60:8094',
STATIC: 'http://192.168.1.60:8094',
tenantId: 'rocanOA',
}
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