强制重新加载地图,并增加兼容旧样式的埋点
This commit is contained in:
@@ -111,10 +111,7 @@ export default {
|
||||
watch: {
|
||||
values: {
|
||||
immediate: true,
|
||||
deep: true, handler(v) {
|
||||
if (this.currentType == 'map') {
|
||||
this.renderMap()
|
||||
}
|
||||
deep: true, handler() {
|
||||
if (this.currentType === 'AiDvTable') {
|
||||
this.dvTableConfig = this.data[this.data.dataType].map((v, i) => {
|
||||
return {
|
||||
@@ -123,7 +120,6 @@ export default {
|
||||
align: this.data.config[i] ? (this.data.config[i].align || '') : ''
|
||||
}
|
||||
})
|
||||
|
||||
this.data.config = this.dvTableConfig
|
||||
}
|
||||
}
|
||||
@@ -168,7 +164,7 @@ export default {
|
||||
renderMap(count = 0) {
|
||||
let {lib: AMap, map} = this
|
||||
this.timer && clearInterval(this.timer)
|
||||
if (AMap) {
|
||||
if (AMap && map) {
|
||||
let infoWin = new AMap.InfoWindow({content: ""})
|
||||
map.clearMap()
|
||||
this.values.filter(e => e.lng).map(e => {
|
||||
|
||||
Reference in New Issue
Block a user