环境-接口地址
This commit is contained in:
@@ -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
@@ -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
@@ -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 加载环境
|
||||
@@ -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';
|
||||
|
||||
// 项目名称
|
||||
|
||||
Reference in New Issue
Block a user