Merge branch 'dev' of http://git.sinoecare.com/sinoecare/digital_village_v2/dvcp_v2_wxcp_app into dev
This commit is contained in:
@@ -11,6 +11,7 @@ let instance = axios.create({
|
|||||||
instance.interceptors.request.use(config => {
|
instance.interceptors.request.use(config => {
|
||||||
store.commit('initWaterMarker')
|
store.commit('initWaterMarker')
|
||||||
if (/AppCountryAlbum/.test(location.pathname)) {
|
if (/AppCountryAlbum/.test(location.pathname)) {
|
||||||
|
config.baseURL = '/aca'
|
||||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
}
|
}
|
||||||
if (/\/grid\//.test(location.pathname)) {
|
if (/\/grid\//.test(location.pathname)) {
|
||||||
@@ -18,6 +19,7 @@ instance.interceptors.request.use(config => {
|
|||||||
}
|
}
|
||||||
if (/\/project\/police\//.test(location.pathname)) {
|
if (/\/project\/police\//.test(location.pathname)) {
|
||||||
config.baseURL = '/hnjc'
|
config.baseURL = '/hnjc'
|
||||||
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
}
|
}
|
||||||
if (sessionStorage.getItem("prj") == "saas") {
|
if (sessionStorage.getItem("prj") == "saas") {
|
||||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
|
|||||||
@@ -42,11 +42,11 @@
|
|||||||
"^/online": "/"
|
"^/online": "/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/api": {
|
"/aca": {
|
||||||
"target": "https://test87xcxc.cunwuyun.cn",
|
"target": "https://test87xcxc.cunwuyun.cn",
|
||||||
"changeOrigin": true,
|
"changeOrigin": true,
|
||||||
"pathRewrite": {
|
"pathRewrite": {
|
||||||
"^/api": "/api"
|
"^/aca": "/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/tmap": {
|
"/tmap": {
|
||||||
|
|||||||
Reference in New Issue
Block a user