diff --git a/src/uni_modules/all-speech/components/all-speech/all-speech.vue b/src/uni_modules/all-speech/components/all-speech/all-speech.vue index a380f31..7874be9 100644 --- a/src/uni_modules/all-speech/components/all-speech/all-speech.vue +++ b/src/uni_modules/all-speech/components/all-speech/all-speech.vue @@ -313,7 +313,7 @@ export default { let that = this // 请求权限 - that.checkPermission(true) + that.checkPermission() // #ifdef APP-PLUS recorderManager.onStop((res) => { @@ -393,7 +393,7 @@ export default { that.permissionInfo = permissionInfo } }, - continueAppMicro(isFirstRequestPer = false) { + continueAppMicro() { let that = this RecordApp.UniWebViewActivate(that) //App环境下必须先切换成当前页面WebView RecordApp.RequestPermission( @@ -401,9 +401,7 @@ export default { console.log('已获得录音权限,可以开始录音了') that.permisionState = true that.isCheckingPermission = false - if (isFirstRequestPer) { - that.stopRecord() - } + that.stopRecord() }, (msg, isUserNotAllow) => { that.isCheckingPermission = false @@ -415,7 +413,7 @@ export default { }, ) }, - async checkPermission(isFirstRequestPer = false) { + async checkPermission() { let that = this // #ifdef APP-PLUS // 先判断os @@ -455,7 +453,7 @@ export default { if (typeof plus !== 'undefined') { handleFindWebview(`handleRequestAndroidPermission('micro')`) } else { - that.continueAppMicro(isFirstRequestPer) + that.continueAppMicro() } // #endif // #endif