fix: bug
This commit is contained in:
@@ -276,6 +276,9 @@
|
||||
const getRecordPermission = (obj) => {
|
||||
if (isTalking.value) {
|
||||
common.msg('操作频繁,请稍后重试!')
|
||||
setTimeout(() => {
|
||||
isTalking.value = false
|
||||
}, 500)
|
||||
return
|
||||
}
|
||||
showOverlayTalking(obj)
|
||||
|
||||
@@ -768,6 +768,7 @@ const uploadRecordNow = voicePath => {
|
||||
})
|
||||
.then(res => {
|
||||
let _res = JSON.parse(res.data)
|
||||
console.log(_res)
|
||||
if (_res.rtnCode === '0000') {
|
||||
talkingList.value = talkingList.value.map(t => {
|
||||
if (t.id === _id) {
|
||||
@@ -778,7 +779,9 @@ const uploadRecordNow = voicePath => {
|
||||
qnsId: _data.qnsId,
|
||||
talkingContent: '',
|
||||
talkingVoice: voicePath,
|
||||
intrctId: _res.body.chatBody,
|
||||
recordId: _res.body.chatBody.recordId,
|
||||
asrStartTm: unref(lastTalkingInfo).asrStartTm,
|
||||
stdyPgrphId: _res.body.chatBody.stdyPgrphId,
|
||||
type: 1,
|
||||
userInfo: {
|
||||
...choiceTeacherInfo.value
|
||||
@@ -789,12 +792,14 @@ const uploadRecordNow = voicePath => {
|
||||
return t
|
||||
}
|
||||
})
|
||||
console.log(11111,_res.body.chatBody)
|
||||
scrollToBottomNow()
|
||||
} else {
|
||||
}
|
||||
setIsUploadingVoice()
|
||||
})
|
||||
.catch(err => {
|
||||
console.log('err',err)
|
||||
setIsUploadingVoice()
|
||||
talkingList.value = talkingList.value.filter(t => t.id !== _id)
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user