fix:setAccepted

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-01-19 16:04:26 +07:00
parent d32e72bc1d
commit 3b4d89da48
2 changed files with 12 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, reactive, onMounted } from 'vue'
import { ref, reactive, onMounted, watch } from 'vue'
import { is, useQuasar } from 'quasar'
import moment from 'moment'
import Camera from 'simple-vue-camera'
@ -493,6 +493,15 @@ onMounted(async () => {
mapRef.value?.requestLocationPermission()
}
})
watch(
() => privacyStore.isAccepted,
(newVal) => {
if (newVal) {
mapRef.value?.requestLocationPermission()
}
}
)
</script>
<template>