Commit f5647194 authored by 赵啸非's avatar 赵啸非

修改站点请求地址

parent 3e5a172b
# 生产环境配置 # 生产环境配置
NODE_ENV = production NODE_ENV = production
VUE_APP_BASE_API = /basics_api/m
# websocket地址 # websocket地址
VUE_APP_WEBSOCKET_API =192.168.0.251:18222/m VUE_APP_WEBSOCKET_API =192.168.0.251:18222/m
...@@ -9,4 +11,4 @@ VUE_APP_PORTAL_URL =/portal_home ...@@ -9,4 +11,4 @@ VUE_APP_PORTAL_URL =/portal_home
# 站点请求地址 # 站点请求地址
VUE_APP_SITETREE_URL = http://192.168.0.251:11078/base/site/siteTree VUE_APP_SITETREE_URL = /basics_api/base/site/siteTree
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
NODE_ENV = 'test' NODE_ENV = 'test'
# 地址 # 地址
VUE_APP_BASE_API = http://192.168.0.98:11091/m VUE_APP_BASE_API = /basics_api/m
# websocket地址 # websocket地址
VUE_APP_WEBSOCKET_API =192.168.0.98:18222/m VUE_APP_WEBSOCKET_API =192.168.0.98:18222/m
...@@ -12,4 +12,4 @@ VUE_APP_PORTAL_URL =/portal_home ...@@ -12,4 +12,4 @@ VUE_APP_PORTAL_URL =/portal_home
# 站点请求地址 # 站点请求地址
VUE_APP_SITETREE_URL = http://192.168.0.98:11078/base/site/siteTree VUE_APP_SITETREE_URL = /basics_api/base/site/siteTree
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
NODE_ENV = production NODE_ENV = production
# 地址 # 地址
VUE_APP_BASE_API = http://192.168.2.144:11091/m VUE_APP_BASE_API = /basics_api/m
# websocket地址 # websocket地址
VUE_APP_WEBSOCKET_API =192.168.2.144:18222/m VUE_APP_WEBSOCKET_API =192.168.2.144:18222/m
...@@ -12,4 +12,4 @@ VUE_APP_PORTAL_URL = /portal_home ...@@ -12,4 +12,4 @@ VUE_APP_PORTAL_URL = /portal_home
# 站点请求地址 # 站点请求地址
VUE_APP_SITETREE_URL = http://192.168.2.144:11078/base/site/siteTree VUE_APP_SITETREE_URL = /basics_api/base/site/siteTree
\ No newline at end of file
...@@ -5,7 +5,8 @@ import cookie from "./cookie"; ...@@ -5,7 +5,8 @@ import cookie from "./cookie";
import httpErrorHandler from "./httpErrorHandler"; import httpErrorHandler from "./httpErrorHandler";
const instance = axios.create({ const instance = axios.create({
baseURL: "/m", // baseURL: "/m",
baseURL: process.env.VUE_APP_BASE_API,
headers: { headers: {
post: { post: {
"Content-Type": "application/json;charset=UTF-8", "Content-Type": "application/json;charset=UTF-8",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment