This commit is contained in:
bb_pan 2025-05-28 14:10:32 +08:00
parent 4f48891923
commit f79df88712
1 changed files with 16 additions and 0 deletions

View File

@ -26,12 +26,25 @@ const mapContainer = ref(null) // 地图容器
const mapDialog = ref(false) // const mapDialog = ref(false) //
const mapWorkCard = ref(false) // const mapWorkCard = ref(false) //
const mapWorkCardData: any = ref({}) // const mapWorkCardData: any = ref({}) //
//
let timer: any = ref()
// //
const points: any = ref([]) const points: any = ref([])
const mapData = ref() const mapData = ref()
const tagData: any = ref() const tagData: any = ref()
const tagIndex: any = ref() const tagIndex: any = ref()
// mapDialog
watch(
() => mapDialog.value,
(newValue) => {
if (!newValue && timer.value) {
//
clearInterval(timer.value)
}
},
)
// //
const loginApi = async () => { const loginApi = async () => {
try { try {
@ -274,6 +287,9 @@ const initMap = () => {
mapDialog.value = true mapDialog.value = true
tagData.value = mapData.value.aphase tagData.value = mapData.value.aphase
tagIndex.value = 1 tagIndex.value = 1
timer.value = setInterval(() => {
loginApi()
}, 3000)
} }
}) })
}) })