cd-mapgis 1.1.27 → 1.1.29
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 +1 -1
- package/src/HttpUtil.js +0 -5
- package/src/OM.js +2 -2
package/package.json
CHANGED
package/src/HttpUtil.js
CHANGED
|
@@ -63,20 +63,15 @@ export default class httpUtil {
|
|
|
63
63
|
xhr.setRequestHeader(h.key, h.value)
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
66
|
xhr.onreadystatechange = function () {
|
|
69
67
|
if (xhr.status === 200) {
|
|
70
68
|
if (xhr.readyState == 4) {
|
|
71
|
-
console.log(url, data, xhr.responseText);
|
|
72
69
|
if (debug) {
|
|
73
70
|
console.log(url, data, xhr.responseText);
|
|
74
71
|
}
|
|
75
72
|
resolve(xhr.responseText)
|
|
76
73
|
}
|
|
77
74
|
} else {
|
|
78
|
-
console.log('post请求错误,url::', url);
|
|
79
|
-
//console.log('params:', data);
|
|
80
75
|
console.error('post请求错误:', xhr)
|
|
81
76
|
reject({
|
|
82
77
|
status: xhr.status,
|
package/src/OM.js
CHANGED
|
@@ -237,9 +237,9 @@ export default class OM {
|
|
|
237
237
|
}
|
|
238
238
|
//直接加载固定的geoServer图层
|
|
239
239
|
if (p.geoLayers && p.geoLayers.length > 0) {
|
|
240
|
-
postRes = await OM.getDic("
|
|
240
|
+
postRes = await OM.getDic("geoserverRead");
|
|
241
241
|
if (!postRes.data) {
|
|
242
|
-
throw new Error("未配置
|
|
242
|
+
throw new Error("未配置geoserverRead");
|
|
243
243
|
}
|
|
244
244
|
let geoserverDic = JSON.parse(postRes.data);
|
|
245
245
|
let wmsUrl = geoserverDic.url + '/' + geoserverDic.workspace + '/wms';
|