1.vue 文件
<template>
<div id="constructionSite"></div>
</template>
<script>
import map from '@/components/map.js'
export default {
name: 'Home',
data() {
return {
href: ''
}
},
created() {
this.get3DUrl()
},
mounted() {
window.get3DUrl=this.get3DUrl
},
methods: {
get3DUrl() { }
}
}
</script>
2 map.js文件
get3DUrl()