优化自动结束麦克风占用,增加延时和状态判断,防止异常结束情况

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