地图api增加生产环境授权

This commit is contained in:
aixianling
2022-03-21 10:09:50 +08:00
parent e76b1d796c
commit 945faf3536

View File

@@ -32,10 +32,16 @@ export default {
*/ */
lib: Object, lib: Object,
}, },
computed: {...mapState(['config'])}, computed: {
...mapState(['config']),
key() {
return process.env.NODE_ENV == "production" ?
"RWWBZ-64BEJ-MVLFJ-FTHLQ-JTR6J-SAB2S" :
"3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY"
}
},
data() { data() {
return { return {
key: "3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY",
tmap: null, tmap: null,
mapLib: null mapLib: null
} }