From 6a3be4afc25e6da2cabd0c98a509fce110e6dbed Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sun, 24 Mar 2024 21:12:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20get=5Fapi=5Furl=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_client/src/config/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'