<template>
<div class="map" id="container"></div>
</template>
<script>
import {
getStation } from '@/api/photovoltaic'
export default {
name: 'MapContainer',
data() {
return {
map: null,
mapMarker: {
station: [],
stationIsShow: true
},
kanbanData: {
userInfo: []
}
}
},
watch: {
map(val) {
console.log('地图变更了')
// 因为生命周期,所以存在数据
let stations =
vue2 使用高德地图
于 2022-07-29 10:53:29 首次发布