Skip to content

Commit e526624

Browse files
author
ChenGuanglin
committed
【bug】iportal数据按行政区划制作迁徙图找不到xyFileld
1 parent 5b3506b commit e526624

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/openlayers/mapping/WebMap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,9 +1820,9 @@ export class WebMap extends Observable {
18201820
if (layerInfo.layerType === 'MIGRATION') {
18211821
try {
18221822
if (dataSource.type === 'PORTAL_DATA') {
1823-
const { dataMetaInfo } = await FetchRequest.get(`${Util.getIPortalUrl()}web/datas/${dataSource.serverId}.json`, null, {
1823+
const { dataMetaInfo } = await FetchRequest.get(`${this.server}web/datas/${dataSource.serverId}.json`, null, {
18241824
withCredentials: true
1825-
})
1825+
}).then(res => res.json());
18261826
// eslint-disable-next-line require-atomic-updates
18271827
layerInfo.xyField = {
18281828
xField: dataMetaInfo.xField,

0 commit comments

Comments
 (0)