From b08088f833e21af02d65f451937513ecc0e79e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=8F=B6?= Date: Mon, 29 May 2023 17:16:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83-=E6=8E=A5=E5=8F=A3=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- .env.development | 2 +- .env.preview | 2 +- src/config/setting.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 1f78438c..c99a6b89 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ VUE_APP_NAME='' -VUE_APP_API_BASE_URL=https://market.liche.cn/api +VUE_APP_API_BASE_URL=https://cloud.haodian.cn/system #npm run build 加载环境 \ No newline at end of file diff --git a/.env.development b/.env.development index 3754cdd9..3e62a8be 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,2 @@ -VUE_APP_API_BASE_URL=http://market.dev.liche.cn/api +VUE_APP_API_BASE_URL=https://cloud.dev.haodian.cn/system #npm run serve 加载环境 diff --git a/.env.preview b/.env.preview index 5ed0bc17..9212e729 100644 --- a/.env.preview +++ b/.env.preview @@ -1,3 +1,3 @@ NODE_ENV=production -VUE_APP_API_BASE_URL=https://market.liche.cn/api +VUE_APP_API_BASE_URL=https://cloud.haodian.cn/system npm run build:preview 加载环境 \ No newline at end of file diff --git a/src/config/setting.js b/src/config/setting.js index a23d68cb..a9c36ced 100644 --- a/src/config/setting.js +++ b/src/config/setting.js @@ -1,6 +1,6 @@ // 接口地址 -//export const API_BASE_URL = process.env.VUE_APP_API_BASE_URL; -export const API_BASE_URL = 'http://localhost:8088/system'; +export const API_BASE_URL = process.env.VUE_APP_API_BASE_URL; +//export const API_BASE_URL = 'http://localhost:8088/system'; //export const API_BASE_URL = 'https://cloud.haodian.cn/system'; // 项目名称