初始化
This commit is contained in:
26
common/js/config.js
Normal file
26
common/js/config.js
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
Reference in New Issue
Block a user