diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index 6a6a7243..8598c44f 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -99,8 +99,6 @@ const recordObjCom = ref({}) const IsAndEnv = getPhoneEnvBool('AND') const initRecord = () => { recordObjCom.value = uni.getRecorderManager() - // startRecord() - // stopRecord() unref(recordObjCom)?.onStop((res, duration)=>{ audioPath.value = res.tempFilePath if(!isOut.value){ @@ -144,6 +142,7 @@ const startRecord = () => { } const stopRecord = () => { + // setTimeout(() => { try{ if(unref(recordObjCom).stop){ unref(recordObjCom).stop() @@ -153,12 +152,13 @@ const stopRecord = () => { }catch{ closeModel() } + // }, 500) } const closeModel = (cb = () => {}) => { setTimeout(() => { showTalkingModel.value = false cb && cb() - },100) + }, 350) } // #endif //#ifndef APP-PLUS