wxwork.config整合
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user