xjsaas-ui/src/views/index.vue

51 lines
655 B
Vue
Raw Normal View History

2024-09-05 15:44:36 +08:00
<template>
2024-09-25 09:45:16 +08:00
<div class="app-container">
2024-09-06 16:31:51 +08:00
<div id="map" class="map">
<map-component></map-component>
</div>
2024-09-25 09:45:16 +08:00
</div>
2024-09-05 15:44:36 +08:00
</template>
2024-09-06 16:31:51 +08:00
<!-- // 这里的tk为你在天地图的官网申请的tk -->
2024-09-05 15:44:36 +08:00
<script>
2024-09-06 16:31:51 +08:00
import MapComponent from '../components/MapComponent';
2024-09-05 15:44:36 +08:00
export default {
name: "Index",
data() {
return {
};
},
2024-09-06 16:31:51 +08:00
components: {
MapComponent
},
2024-09-05 15:44:36 +08:00
methods: {
goTarget(href) {
window.open(href, "_blank");
},
initMap() {
2024-09-06 16:31:51 +08:00
2024-09-05 15:44:36 +08:00
}
},
mounted() {
},
created(){
}
};
</script>
<style scoped lang="scss">
.map{
2024-09-25 09:45:16 +08:00
width: 100%;
2024-09-18 12:36:23 +08:00
height: 800px;
2024-09-05 15:44:36 +08:00
}
2024-09-25 09:45:16 +08:00
.app-container{
padding: 0px;
}
2024-09-05 15:44:36 +08:00
</style>