优化自动结束麦克风占用,增加延时和状态判断,防止异常结束情况
This commit is contained in:
parent
d76ec030e6
commit
227d8c7524
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user