优化自动结束麦克风占用,增加延时和状态判断,防止异常结束情况
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
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:
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