优化传入参数写法

This commit is contained in:
田岩
2025-12-15 09:33:06 +08:00
parent 55d8044d71
commit 31cc713382
2 changed files with 7 additions and 1 deletions
+7 -1
View File
@@ -255,7 +255,13 @@
});
onMounted(() => {
initConnection({
authParams: toRaw(dataInfo),
authParams: {
traId: dataInfo.traId,
chaId: dataInfo.chaId,
traType: dataInfo.traType,
traInterTyp: dataInfo.traInterTyp,
preview: dataInfo.preview
},
onStartRecord: onStartRecord,
playPcmCallback: (res) => talkSpeakerRef.value.playPCM(res),
setPlayNumber: (id) => talkSpeakerRef.value.setPlayNumber(id),