wxwork.config整合
This commit is contained in:
@@ -132,7 +132,7 @@ export default {
|
||||
buildPopup: false
|
||||
}
|
||||
},
|
||||
computed: {...mapState(['user', 'config'])},
|
||||
computed: {...mapState(['user', 'wxwork'])},
|
||||
mounted() {
|
||||
this.getCommunityList().then(points => {
|
||||
this.getMarkerCluster(points)
|
||||
@@ -217,7 +217,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
this.config.latlng && map.setCenter(this.config.latlng)
|
||||
this.wxwork.config.latlng && map.setCenter(this.wxwork.config.latlng)
|
||||
let MarkerCluster = new TMap.MarkerCluster({
|
||||
map, gridSize: 60,
|
||||
enableDefaultStyle: false, // 关闭默认样式
|
||||
|
||||
@@ -54,7 +54,7 @@ export default {
|
||||
labels: []
|
||||
}
|
||||
},
|
||||
computed: {...mapState(['user', 'config'])},
|
||||
computed: {...mapState(['user', 'wxwork'])},
|
||||
created() {
|
||||
this.$dict.load('girdType')
|
||||
this.areaId = this.user.areaId
|
||||
@@ -178,7 +178,7 @@ export default {
|
||||
});
|
||||
map.fitBounds(bounds, {padding: 100})
|
||||
} else {
|
||||
map.setCenter(this.config.latlng)
|
||||
map.setCenter(this.wxwork.config.latlng)
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user