1
This commit is contained in:
@@ -26,18 +26,13 @@ const baseConfig = {
|
|||||||
// 开发环境配置
|
// 开发环境配置
|
||||||
const developmentConfig = {
|
const developmentConfig = {
|
||||||
...baseConfig,
|
...baseConfig,
|
||||||
apiUrl: 'http://localhost:9097/admin_api/',
|
// apiUrl: 'http://localhost:9097/admin_api/',
|
||||||
uploadUrl: 'http://localhost:9097/admin_api/upload',
|
// uploadUrl: 'http://localhost:9097/admin_api/upload',
|
||||||
// 开发环境显示更多调试信息
|
|
||||||
debug: true
|
|
||||||
}
|
|
||||||
|
|
||||||
// 测试环境配置
|
|
||||||
const testConfig = {
|
|
||||||
...baseConfig,
|
|
||||||
apiUrl: 'http://work.light120.com/admin_api/',
|
apiUrl: 'http://work.light120.com/admin_api/',
|
||||||
uploadUrl: 'http://work.light120.com/admin_api/upload',
|
uploadUrl: 'http://work.light120.com/admin_api/upload',
|
||||||
debug: false
|
// 开发环境显示更多调试信息
|
||||||
|
debug: true
|
||||||
}
|
}
|
||||||
|
|
||||||
// 生产环境配置
|
// 生产环境配置
|
||||||
@@ -51,7 +46,6 @@ const productionConfig = {
|
|||||||
// 根据环境导出对应配置
|
// 根据环境导出对应配置
|
||||||
const configMap = {
|
const configMap = {
|
||||||
development: developmentConfig,
|
development: developmentConfig,
|
||||||
test: testConfig,
|
|
||||||
production: productionConfig
|
production: productionConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,7 +58,6 @@ export default config
|
|||||||
export {
|
export {
|
||||||
baseConfig,
|
baseConfig,
|
||||||
developmentConfig,
|
developmentConfig,
|
||||||
testConfig,
|
|
||||||
productionConfig
|
productionConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user