优化传入参数写法
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user