优化传入参数写法
This commit is contained in:
@@ -255,7 +255,13 @@
|
|||||||
});
|
});
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
initConnection({
|
initConnection({
|
||||||
authParams: toRaw(dataInfo),
|
authParams: {
|
||||||
|
traId: dataInfo.traId,
|
||||||
|
chaId: dataInfo.chaId,
|
||||||
|
traType: dataInfo.traType,
|
||||||
|
traInterTyp: dataInfo.traInterTyp,
|
||||||
|
preview: dataInfo.preview
|
||||||
|
},
|
||||||
onStartRecord: onStartRecord,
|
onStartRecord: onStartRecord,
|
||||||
playPcmCallback: (res) => talkSpeakerRef.value.playPCM(res),
|
playPcmCallback: (res) => talkSpeakerRef.value.playPCM(res),
|
||||||
setPlayNumber: (id) => talkSpeakerRef.value.setPlayNumber(id),
|
setPlayNumber: (id) => talkSpeakerRef.value.setPlayNumber(id),
|
||||||
|
|||||||
Reference in New Issue
Block a user