地图api增加生产环境授权
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user