fix:setAccepted
This commit is contained in:
parent
d32e72bc1d
commit
3b4d89da48
2 changed files with 12 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue