初始化

This commit is contained in:
仲么了
2023-01-11 16:33:13 +08:00
commit 0ea48cd5b3
181 changed files with 25945 additions and 0 deletions

26
common/js/config.js Normal file
View 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