Commit b51be160 authored by 邓晓峰's avatar 邓晓峰

fix: 修复接入网关路径重写

parent e4f961dc
Pipeline #39100 passed with stages
in 23 minutes 46 seconds
......@@ -17,7 +17,7 @@ export default {
// },
{
name: 'civ_pandawork',
entry: `//${window.location.hostname}:8080/civ_pandawork`,
entry: `//${window.location.hostname}:8081/civ_pandawork`,
container: '#micro-container',
activeRule: '/civbase/civ_pandawork',
},
......
......@@ -104,7 +104,7 @@
"@wisdom-map/util": "^1.0.27-0",
"@wisdom-utils/components": "0.0.14",
"@wisdom-utils/runtime": "0.0.15",
"@wisdom-utils/utils": "0.0.56",
"@wisdom-utils/utils": "0.0.59",
"animate.css": "^4.1.1",
"antd": "^4.16.13",
"compression": "1.7.4",
......
......@@ -8,8 +8,9 @@ const { warning } = Modal;
// eslint-disable-next-line no-return-await
instanceRequest.reportCodeError = true;
instanceRequest.transformRequestURL = function(url) {
debugger
if (window.globalConfig && window.globalConfig.hasGateWay && /^\/(cityinterface|CityInterface|CityServer|PandaInformatization)/.test(url)) {
url = '/GateWay' + url;
return '/GateWay' + url;
}
return url;
}
......
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