优化自动结束麦克风占用,增加延时和状态判断,防止异常结束情况
Some checks failed
Check / lint (push) Has been cancelled
Check / typecheck (push) Has been cancelled
Check / build (build, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:app, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:app, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, windows-latest) (push) Has been cancelled

This commit is contained in:
wangyifeng 2025-07-07 10:35:47 +08:00
parent d76ec030e6
commit 227d8c7524

View File

@ -401,7 +401,11 @@ export default {
console.log('已获得录音权限,可以开始录音了')
that.permisionState = true
that.isCheckingPermission = false
that.stopRecord()
setTimeout(() => {
if (!that.recordPopupShow) {
that.stopRecord()
}
}, 2000)
},
(msg, isUserNotAllow) => {
that.isCheckingPermission = false