m修复talk页奇怪的bug

This commit is contained in:
田岩
2025-12-12 21:29:33 +08:00
parent 6cb40e0242
commit 5774ea2514
+5 -11
View File
@@ -69,13 +69,13 @@
const isVideoStyle = computed(() => dataInfo.traInterTyp === '03');
const dataInfo = reactive({
isPreview: '', // 是否是预览
traId: '',
chaId: '',
traType: '',
traInterTyp: '',
execId: '',
sceneDesc: '',
preview: false, // 是否是预览
traInterTypDesc: '', // 类型的文字提示,例如 语音通话
ossAddr: '', //用户头像
chaName: '' //用户名称
@@ -118,7 +118,8 @@
dataInfo.execId +
'&type=' +
dataInfo.traType +
'&isPreview=' + dataInfo.isPreview
'&isPreview=' +
(dataInfo.preview ? '1' : '')
);
} else {
common.navigateBack()
@@ -245,8 +246,7 @@
// 只有app才能打开摄像头
isVideo.value = dataInfo.traInterTyp === '03';
//#endif
console.log('isVideo.value', isVideo.value);
dataInfo.isPreview = e.isPreview ?? '0'; // 是否是预览
dataInfo.preview = e.isPreview === '1'; // 是否是预览
const pageData = common.getPageCache('tipMsgsceneDesc');
dataInfo.ossAddr = pageData.ossAddr;
dataInfo.chaName = pageData.chaName;
@@ -254,13 +254,7 @@
});
onMounted(() => {
initConnection({
authParams: {
'traType': dataInfo.traType,
'traInterTyp': dataInfo.traInterTyp,
'traId': dataInfo.traId,
'chaId': dataInfo.chaId,
'preview': true
},
authParams: Object.assign({}, dataInfo),
onStartRecord: onStartRecord,
playPcmCallback: (res) => talkSpeakerRef.value.playPCM(res),
setPlayNumber: (id) => talkSpeakerRef.value.setPlayNumber(id),