wxwork.config整合

This commit is contained in:
aixianling
2022-07-20 12:07:23 +08:00
parent 05bb18f8f9
commit 7793200c2c
6 changed files with 10 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ export default {
lib: Object,
},
computed: {
...mapState(['config']),
...mapState(['wxwork']),
key() {
return process.env.NODE_ENV == "production" ?
"RWWBZ-64BEJ-MVLFJ-FTHLQ-JTR6J-SAB2S" :
@@ -59,8 +59,8 @@ export default {
},
initTMap() {
let latLng = {}
if (this.config.lat) { //通用版
latLng = this.config
if (this.wxwork.config.lat) { //通用版
latLng = this.wxwork.config
this.mapLib = TMap
this.tmap = new TMap.Map(this.$refs.tmap, {
zoom: 11,