|
@@ -1,24 +1,26 @@
|
|
// 开发环境配置
|
|
// 开发环境配置
|
|
-
|
|
|
|
const config = {
|
|
const config = {
|
|
- // 生产环境
|
|
|
|
- produce: {
|
|
|
|
|
|
+ produce: { // 生产环境
|
|
baseUrl: 'https://www.menduner.com',
|
|
baseUrl: 'https://www.menduner.com',
|
|
previewUrl: 'https://kkfileview.menduner.com/' // 预览路径
|
|
previewUrl: 'https://kkfileview.menduner.com/' // 预览路径
|
|
},
|
|
},
|
|
- httpsTest: {
|
|
|
|
|
|
+ httpsTest: { // 测试环境
|
|
baseUrl: 'https://menduner.citupro.com:2443'
|
|
baseUrl: 'https://menduner.citupro.com:2443'
|
|
},
|
|
},
|
|
- httpTest: {
|
|
|
|
|
|
+ httpTest: { // 测试环境
|
|
baseUrl: 'http://menduner.citupro.com:7878'
|
|
baseUrl: 'http://menduner.citupro.com:7878'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-export const envObj = config['httpsTest']
|
|
|
|
|
|
+const setting = 'httpsTest' // httpsTest produce > 环境选择(切换环境更改此处)
|
|
|
|
+
|
|
|
|
+export const envObj = config[setting]
|
|
|
|
|
|
export const baseUrl = envObj.baseUrl
|
|
export const baseUrl = envObj.baseUrl
|
|
|
|
|
|
|
|
+export const testEnvBool = Boolean(setting !== 'produce') // true: 测试环境
|
|
|
|
+
|
|
// 租户id
|
|
// 租户id
|
|
export const tenantId = '155'
|
|
export const tenantId = '155'
|
|
|
|
|
|
-export const apiPath = '/app-api'
|
|
|
|
|
|
+export const apiPath = '/app-api'
|