From f6932b4fd0bfb6363e2a541f259764ab1aea865e Mon Sep 17 00:00:00 2001 From: wj <1285151836@qq.com> Date: Fri, 28 Apr 2023 11:22:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95=E7=8E=AF?= =?UTF-8?q?=E5=A2=83,=E4=BE=9D=E8=B5=96=E5=8E=BB=E9=99=A4pulic/config.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 3df55dd..bed0d9f 100644 --- a/src/main.js +++ b/src/main.js @@ -25,12 +25,12 @@ Object.keys(filters).forEach(key => { Vue.config.productionTip = false; let getUrl = ""; -let BASE_URL = process.env.VUE_APP_API_BASE; +let url = process.env.VUE_APP_API_BASE; let startApp = function() { console.log(window.global_config.BASE_URL); // axios.get("./config.json").then(res => { // 基础地址 - getUrl = BASE_URL; + getUrl = url; myReq.defaults.baseURL = getUrl; // mySock.ws_url = res.data.BASE_URL2; console.log( res.data.BASE_URL+"\n"+ res.data.BASE_URL2)