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

fix: 过滤信息化网关接口拦截

parent 772fad17
Pipeline #39078 passed with stages
in 23 minutes 35 seconds
/* eslint-disable */
// const proxyURL = process.env.NODE_ENV !== 'production' ? 'http://192.168.10.150:8777' : window.location.origin;
const proxyURL = 'http://192.168.10.156:8666';
const proxyURL = 'http://192.168.10.163:8666';
module.exports = {
assetsRoot: process.env.NODE_ENV !== 'production' ? proxyURL : './',
dev: {
......
......@@ -6320,9 +6320,9 @@
}
},
"@wisdom-utils/utils": {
"version": "0.0.55",
"resolved": "https://g.civnet.cn:4873/@wisdom-utils%2futils/-/utils-0.0.55.tgz",
"integrity": "sha512-zi95BdN/QakQEAyfTHTE2FvT7w0mnM7h+XqrPH2N2Imqo36vRQrg9S8aCsqjdIiypkLAg7JunXFICq5HIfpejA==",
"version": "0.0.56",
"resolved": "https://g.civnet.cn:4873/@wisdom-utils%2futils/-/utils-0.0.56.tgz",
"integrity": "sha512-blp6F3pOLzcOBovFV/VYylY/GlskspzGhzemNhttg9dvAxfX+AT42VchCJYABExobZjxpYCPUgi4XrdlyFpsyA==",
"requires": {
"@ahooksjs/use-request": "^2.0.0",
"axios": "^0.21.1",
......@@ -16736,9 +16736,9 @@
}
},
"kit_global_config": {
"version": "1.0.36",
"resolved": "https://g.civnet.cn:4873/kit_global_config/-/kit_global_config-1.0.36.tgz",
"integrity": "sha512-xAx5ihBHaV40AnA9t8qbqE9z7iTrgHFCmlsTIbygAMYRMGvpOpqvybInZaE3nAD0QXTA96fnrUCYkZD8GNu4AQ==",
"version": "1.0.37",
"resolved": "https://g.civnet.cn:4873/kit_global_config/-/kit_global_config-1.0.37.tgz",
"integrity": "sha512-Te8jwqxDqFy2nmzl7cTCAEZ+jciyBzjrO3wa70XthPTxFD8IGlRmnNRC+nj9gWhUGl/5nOIMz5q8yX2hkAgyhA==",
"requires": {
"@babel/runtime": "^7.10.5",
"js-base64": "^3.5.2",
......@@ -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.55",
"@wisdom-utils/utils": "0.0.56",
"animate.css": "^4.1.1",
"antd": "^4.16.13",
"compression": "1.7.4",
......@@ -116,7 +116,7 @@
"immutable": "^4.0.0-rc.12",
"js-base64": "^3.5.2",
"js-cookie": "^2.2.1",
"kit_global_config": "^1.0.36",
"kit_global_config": "^1.0.37",
"kit_logger": "^1.0.2",
"kit_utils": "^1.3.11",
"lodash": "4.17.11",
......
......@@ -4,11 +4,15 @@ import { instanceRequest, service } from '@wisdom-utils/utils';
import AppService from './service/base';
import notificationService from './service/notification';
const { warning } = Modal;
// eslint-disable-next-line no-return-await
instanceRequest.reportCodeError = true;
instanceRequest.transformRequestURL = function(url) {
if (window.globalConfig && window.globalConfig.hasGateWay && /^\/(cityinterface|CityInterface|CityServer|PandaInformatization)/.test(url)) {
url = '/GateWay' + url;
}
return url;
}
const codeMessage = {
200: '服务器成功返回请求的数据。',
201: '新建或修改数据成功。',
......
......@@ -204,6 +204,7 @@ export function logout(data) {
data: {
currentMenuIndex: 0,
complexConfig: {},
globalConfig: window.globalConfig
},
};
}
......@@ -232,6 +232,7 @@ const appReducer = (state = initialState, action) => {
return state.merge({
complexConfig: action.data.complexConfig,
currentMenuIndex: action.data.currentMenuIndex,
globalConfig: action.data.globalConfig
});
case MAP_VIEW:
store.set('view', action.data);
......
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