riku
2023-10-31 2d3d56ff801b73afdb779267004d740f9beafe57
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<template>
  <div id="container"></div>
</template>
 
<script setup>
import { onMounted } from 'vue';
 
// window._AMapSecurityConfig = {
//   securityJsCode: '「您申请的安全密钥」'
// }
 
onMounted(() => {
  // const marker = new AMap.Marker({
  //   position: [116.39, 39.9] //位置
  // });
  // map.add(marker); //添加到地图
});
</script>
<style scoped>
#container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: var(--screen-min-height);
  min-width: var(--screen-min-width);
  z-index: 0px;
}
</style>