fix: bug

This commit is contained in:
杨航
2025-09-24 10:14:46 +08:00
parent 8c47c82db4
commit f21f29c44f
3 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export const chatVoice = (data) => {
return request({
url: '/traask/traTestchat/chatVoice',
method: 'post',
timeout: 60000,
timeout: 120000,
data
});
};
+7 -6
View File
@@ -73,7 +73,13 @@ watch(
)
watch(
() => props.isLoading,
() => {},
(val) => {
if(!val){
setTimeout(()=> {
playVoice()
},500)
}
},
{
deep: true,
immediate: true
@@ -118,11 +124,6 @@ const activeNames = ref([1, 2])
talkVoiceObj.value.src = ''
isPlaying.value = false
})
// itemVoice.value = unref(dataInfo).talkingVoice
// talkVoiceObj.value.src = itemVoice.value
// setTimeout(()=>{
// setVoiceTime(0)
// },100)
}
const setVoiceTime = (sum) => {
sum += 1
+2
View File
@@ -348,6 +348,7 @@
isLoading: true,
id: _id + 'loading'
});
scrollToBottomNow()
chatVoice({
chatVoice: data.body.intrctContent
}).then(res => {
@@ -363,6 +364,7 @@
talkingVoiceId: res.body.fileId,
...res.body
});
scrollToBottomNow()
})
};