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'; // 项目名称