环境-接口地址

This commit is contained in:
老叶
2023-05-29 17:16:05 +08:00
parent 3e85ad0627
commit b08088f833
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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 加载环境
+1 -1
View File
@@ -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 加载环境
+1 -1
View File
@@ -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 加载环境
+2 -2
View File
@@ -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';
// 项目名称