达梦数据库兼容
This commit is contained in:
@@ -9,7 +9,9 @@ instance.interceptors.request.use(config => {
|
|||||||
} else if (/AppCountryAlbum/.test(location.pathname) || config.module == 'AppCountryAlbum' || module == "AppCountryAlbum") {
|
} else if (/AppCountryAlbum/.test(location.pathname) || config.module == 'AppCountryAlbum' || module == "AppCountryAlbum") {
|
||||||
config.baseURL = '/aca'
|
config.baseURL = '/aca'
|
||||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
} else if (/\/project\/beta\//.test(location.pathname) || config.module == 'wangge' || module == "wangge") {
|
} else if (/AppOpenChat/.test(location.pathname) || config.module == 'AppOpenChat' || module == "AppOpenChat") {
|
||||||
|
config.baseURL = '/dm'
|
||||||
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
} else if (/saas/.test(location.pathname) || config.module == 'saas' || module == "saas") {
|
} else if (/saas/.test(location.pathname) || config.module == 'saas' || module == "saas") {
|
||||||
config.baseURL = '/online'
|
config.baseURL = '/online'
|
||||||
} else if (/\/project\/police\//.test(location.pathname) || config.module == 'hnjc' || module == "hnjc") {
|
} else if (/\/project\/police\//.test(location.pathname) || config.module == 'hnjc' || module == "hnjc") {
|
||||||
|
|||||||
@@ -86,6 +86,13 @@
|
|||||||
"^/xaxc": "/"
|
"^/xaxc": "/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/dm": {
|
||||||
|
"target": "http://192.168.1.87:11211/",
|
||||||
|
"changeOrigin": true,
|
||||||
|
"pathRewrite": {
|
||||||
|
"^/dm": "/"
|
||||||
|
}
|
||||||
|
},
|
||||||
"/qxn": {
|
"/qxn": {
|
||||||
"target": "http://192.168.1.87:12001/",
|
"target": "http://192.168.1.87:12001/",
|
||||||
"changeOrigin": true,
|
"changeOrigin": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user