From 8a7e88e5951fd5aa45bd3665bdba92c4829a0a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Fri, 8 Aug 2025 14:26:15 +0800 Subject: [PATCH] fix: bug --- src/pages/course/components/touchBtn.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index dbd610e5..1bf5d163 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -153,7 +153,7 @@ const initRecord = () => { }) } const startFlag = ref(1) -const canStart = ref(true) +// const canStart = ref(true) const startRecord = () => { unref(recordObjCom).start({format:'mp3'}) } @@ -168,9 +168,9 @@ const stopRecord = () => { }catch{ closeModel() } - setTimeout(() => { - canStart.value = true - }, 1000) + // setTimeout(() => { + // canStart.value = true + // }, 1000) } const closeModel = (cb = () => {}) => { setTimeout(() => { @@ -260,9 +260,9 @@ const showOverlayTalking = (obj) => { }) return } - if(!canStart.value){ - return - } + // if(!canStart.value){ + // return + // } isMoving.value = true emit('startRecord') recNum.value += 1 @@ -271,7 +271,7 @@ const showOverlayTalking = (obj) => { touchY.value = obj.changedTouches[0].pageY baseY.value = obj.currentTarget.offsetTop //#ifdef APP-PLUS - canStart.value = false + // canStart.value = false startRecord() // #endif setTimeout(() => {