fix: bug
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ export const chatVoice = (data) => {
|
||||
return request({
|
||||
url: '/traask/traTestchat/chatVoice',
|
||||
method: 'post',
|
||||
timeout: 60000,
|
||||
timeout: 120000,
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user