This commit is contained in:
yanran200730
2022-01-14 11:40:26 +08:00
parent 7ed146cbf4
commit 2d4a14d01d
2 changed files with 4 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
<script>
import {mapState} from 'vuex'
export default {
name: "AiTMap",
props: {
@@ -30,6 +31,7 @@ export default {
*/
lib: Object,
},
computed: {...mapState(['config'])},
data() {
return {
key: "3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY",
@@ -52,6 +54,7 @@ export default {
this.mapLib = TMap
this.tmap = new TMap.Map(this.$refs.tmap, {
zoom: 11,
center: new TMap.LatLng(this.config.lat, this.config.lng),
...this.ops
})
this.$emit('loaded')