NEZ-1418 fix: Data center新增数据,修改坐标时无法选择,浏览器报错
This commit is contained in:
@@ -116,8 +116,13 @@ export default {
|
|||||||
},
|
},
|
||||||
setLatlng () {
|
setLatlng () {
|
||||||
const lnglat = this.lnglat.split(',')
|
const lnglat = this.lnglat.split(',')
|
||||||
this.mapParam.longitude = lnglat[0]
|
if (lnglat[0] && lnglat[1]) {
|
||||||
this.mapParam.latitude = lnglat[1]
|
this.mapParam.longitude = lnglat[0]
|
||||||
|
this.mapParam.latitude = lnglat[1]
|
||||||
|
} else {
|
||||||
|
this.mapParam.longitude = '-33.9257813'
|
||||||
|
this.mapParam.latitude = '55.5761251'
|
||||||
|
}
|
||||||
this.$emit('lnglatChange', this.lnglat, this.zoom)
|
this.$emit('lnglatChange', this.lnglat, this.zoom)
|
||||||
},
|
},
|
||||||
getAttribute () {
|
getAttribute () {
|
||||||
|
|||||||
Reference in New Issue
Block a user