cd-mapgis 1.1.22 → 1.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cd-mapgis",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "main": "./src/index.js",
5
5
  "types": "./src/index.d.ts",
6
6
  "type": "module",
package/src/HttpUtil.js CHANGED
@@ -72,6 +72,7 @@ export default class httpUtil {
72
72
  resolve(xhr.responseText)
73
73
  }
74
74
  } else {
75
+ console.error('post请求错误,url::', url);
75
76
  console.error('post请求错误:', xhr)
76
77
  reject({
77
78
  status: xhr.status,
package/src/OM.js CHANGED
@@ -264,6 +264,7 @@ export default class OM {
264
264
  }
265
265
  //再加载geoServer接口图层
266
266
  let param = p.param ? p.param : {};
267
+ param.clientIp = OM.getIp(window.location.href);
267
268
  let res = await OM.post("/map/getPushLayer", param);
268
269
  if (res != null && res.data != null) {
269
270
  let d = res.data;