完善功能
This commit is contained in:
@@ -2,19 +2,23 @@
|
||||
export const ENV_CONFIG = {
|
||||
// 开发环境
|
||||
development: {
|
||||
API_BASE_URL: 'http://127.0.0.1:9200/api',
|
||||
API_BASE_URL: 'https://clinic-api.websoft.top/api',
|
||||
// API_BASE_URL: 'http://127.0.0.1:9200/api',
|
||||
WS_URL: 'ws://127.0.0.1:9200/api/chat',
|
||||
APP_NAME: '开发环境',
|
||||
DEBUG: 'true',
|
||||
},
|
||||
// 生产环境
|
||||
production: {
|
||||
API_BASE_URL: 'https://clinic-api.websoft.top/api',
|
||||
WS_URL: 'wss://clinic-api.websoft.top/api/chat',
|
||||
APP_NAME: '通源堂健康生态平台',
|
||||
DEBUG: 'false',
|
||||
},
|
||||
// 测试环境
|
||||
test: {
|
||||
API_BASE_URL: 'https://clinic-api.websoft.top/api',
|
||||
WS_URL: 'wss://clinic-api.websoft.top/api/chat',
|
||||
APP_NAME: '测试环境',
|
||||
DEBUG: 'true',
|
||||
}
|
||||
@@ -37,6 +41,7 @@ export function getEnvConfig() {
|
||||
// 导出环境变量
|
||||
export const {
|
||||
API_BASE_URL,
|
||||
WS_URL,
|
||||
APP_NAME,
|
||||
DEBUG
|
||||
} = getEnvConfig()
|
||||
|
||||
Reference in New Issue
Block a user