fix: bug
This commit is contained in:
@@ -309,7 +309,7 @@
|
||||
if (IsAndEnv) {
|
||||
let _recordPerm = await permission.requestAndroidPermission('android.permission.RECORD_AUDIO');
|
||||
if (_recordPerm !== 1) {
|
||||
isGettingPermission.value = true
|
||||
showTalkingModel.value = false;
|
||||
common.show('提示信息', '当前页面需要使用的录音权限,是否前往开启?', true, '取消', '确定').then((res) => {
|
||||
if (res) {
|
||||
// 去开启权限
|
||||
@@ -328,7 +328,6 @@
|
||||
let _recordPerm = uni.getAppAuthorizeSetting();
|
||||
let _state = _recordPerm.microphoneAuthorized;
|
||||
if (_state === 'denied') {
|
||||
isGettingPermission.value = true
|
||||
common.show('提示信息', '当前页面需要使用的录音权限,是否前往开启?', true, '取消', '确定').then((res) => {
|
||||
if (res) {
|
||||
// 去开启权限
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<view class="mb-64" v-if="(modelValue.fileList || []).length>0">
|
||||
<view class="fz-30 font_pf fw-600 mb-4">知识资料</view>
|
||||
<view class="file-item" v-for="item in modelValue.fileList" @click="previewFile(item)">
|
||||
{{item.fileName}}
|
||||
{{item.fileName.replace(/.docx|.doc|.txt/g, '.pdf')}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -250,11 +250,9 @@
|
||||
// #ifdef APP-PLUS
|
||||
// 安卓端
|
||||
if (IsAndEnv) {
|
||||
isGettingPermission.value = true
|
||||
let _recordPerm = await permission.requestAndroidPermission('android.permission.RECORD_AUDIO');
|
||||
if (_recordPerm !== 1) {
|
||||
showTalkingModel.value = false;
|
||||
isGettingPermission.value = true
|
||||
common.show('提示信息', '当前页面需要使用的录音权限,是否前往开启?', true, '取消', '确定').then((res) => {
|
||||
if (res) {
|
||||
// 去开启权限
|
||||
@@ -273,7 +271,6 @@
|
||||
let _recordPerm = uni.getAppAuthorizeSetting();
|
||||
let _state = _recordPerm.microphoneAuthorized;
|
||||
if (_state === 'denied') {
|
||||
isGettingPermission.value = true
|
||||
common.show('提示信息', '当前页面需要使用的录音权限,是否前往开启?', true, '取消', '确定').then((res) => {
|
||||
if (res) {
|
||||
// 去开启权限
|
||||
|
||||
Reference in New Issue
Block a user