diff --git a/src/pages/sparring/components/touchBtn.vue b/src/pages/sparring/components/touchBtn.vue index 5b6baf85..67c69a9d 100644 --- a/src/pages/sparring/components/touchBtn.vue +++ b/src/pages/sparring/components/touchBtn.vue @@ -293,7 +293,6 @@ let _res = await getPermission() console.log(2, '取到权限结果:', _res) if (_res) { - hasPermission.value = true setTimeout(() => { if (!isGettingPermission.value) { showOverlayTalking(obj); @@ -327,6 +326,7 @@ return false } else { // isGettingPermission.value = false + hasPermission.value = true return true } } else {