提交
This commit is contained in:
		| @ -83,11 +83,9 @@ class GeoJson extends Base { | ||||
|  | ||||
|   async on() { | ||||
|     let url = "" | ||||
|     if (this.options.host.endsWith("yjearth4.0")) | ||||
|       url = this.options.host + '/data/service/getFile' | ||||
|     else | ||||
|       url = this.options.host + '/yjearth4.0/data/service/getFile' | ||||
|     url = url + '?path=' + encodeURIComponent(this.options.url) | ||||
|     this.options.host = this.options.host || getHost() | ||||
|     url = this.options.host + '/fileInfo/previewLocal' | ||||
|     url += '?fileAbsolutePath=' + this.options.url | ||||
|     let rsp = await fetch(url, { | ||||
|       method: 'get', | ||||
|       headers: { | ||||
|  | ||||
| @ -349,7 +349,7 @@ class Vector extends Base { | ||||
|       let url = '' | ||||
|       that.options.host = that.options.host || getHost() | ||||
|       url = that.options.host + '/fileInfo/previewLocal' | ||||
|       url += '?path=' + that.options.path | ||||
|       url += '?fileAbsolutePath=' + that.options.path | ||||
|       fetch(url, { | ||||
|         method: 'get', | ||||
|         headers: { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user