This commit is contained in:
guanj
2025-08-13 20:45:10 +08:00
parent c387cc9589
commit 127adcd524
5 changed files with 265 additions and 265 deletions

View File

@@ -1,23 +1,23 @@
const debug = true // true 是连地服务端本地false 是连接线上
const development = {
domain: 'http://192.168.1.62:10215',
}
const production = {
domain: 'https://pqmcn.com:8092/api',
}
const config = debug ? development : production
// #ifdef H5
if (process.env.NODE_ENV === 'development') {
config.domain = '/api'
} else {
config.domain = window.location.origin
}
// #endif
config.static = config.domain + '/system-boot/file/download?filePath='
export default config
const debug = false // true 是连地服务端本地false 是连接线上
const development = {
domain: 'http://192.168.1.62:10215',
}
const production = {
domain: 'https://pqmcn.com:8092/api',
}
const config = debug ? development : production
// #ifdef H5
if (process.env.NODE_ENV === 'development') {
config.domain = '/api'
} else {
config.domain = window.location.origin
}
// #endif
config.static = config.domain + '/system-boot/file/download?filePath='
export default config