diff --git a/test_client/src/config/index.js b/test_client/src/config/index.js index 6b0ea5e..1a28580 100644 --- a/test_client/src/config/index.js +++ b/test_client/src/config/index.js @@ -2,12 +2,12 @@ const DEFAULT_CONFIG = { //接口地址 API_URL: get_api_url(), //name - APP_TUTLE:'气味分析', + APP_TUTLE:'', //请求超时 TIMEOUT: 30000, } function get_api_url(){ - if(process.env.ENV === 'development' || (process.env.ENV === 'production' && window.location.host.indexOf('localhost') > -1)){ + if(process.env.NODE_ENV === 'development' || (process.env.NODE_ENV === 'production' && window.location.host.indexOf('localhost') > -1)){ return process.env.VUE_APP_BASE_API } return 'https://' + window.location.host + '/api'