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