uniapps/work-app/src/subPackages/voiceCallDetail/index.vue
@@ -17,7 +17,7 @@ const userParams = userStore?.userInfo ? JSON.stringify(userStore.userInfo) : '{}' const sWebViewRef = ref(null); const viewUrl = ref(""); const typeSign = ref('') // #ifdef APP-PLUS /** * 请求 Android 麦克风权限 @@ -80,6 +80,14 @@ }); function onPostMessage(data) { typeSign.value = data?.sign || '' if(typeSign.value === 'closeBox'){ setTimeout(() => { // 关闭弹窗 cancelIncomingCallNotification() }, 1000) } // 将WebView消息传递给全局WebSocket处理 if (typeof uni !== 'undefined' && uni.$emit) { uni.$emit('webViewMessage', data);