强制重新加载地图,并增加兼容旧样式的埋点

This commit is contained in:
aixianling
2023-04-11 16:16:33 +08:00
parent 481f3f13b3
commit 7330da14eb
3 changed files with 14 additions and 8 deletions

View File

@@ -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 => {