diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue index 2e120858..15629ef3 100644 --- a/src/pages/course/components/talkingItem.vue +++ b/src/pages/course/components/talkingItem.vue @@ -254,7 +254,7 @@ const audioCacheObj = computed(() => storageStore.audioObj) const itemVoice = ref('') const showWithdraw = computed(()=>{ - let _isMe = unref(lastQuestionInfo).qnsLogId === unref(dataInfo).qnsLogId + let _isMe = unref(lastQuestionInfo).qstLogId === unref(dataInfo).qstLogId let _isQuestion = unref(lastQuestionInfo).isQuestion return _isMe && _isQuestion }) diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index 6c78dcf6..e28d2642 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -446,7 +446,7 @@ const getQuestionInfoUnStudy = (pgrphId) => { id: _id, isQuestion: true } - talkingList.value.push(lastTalkingInfo.value) + talkingList.value.push(JSON.parse(JSON.stringify(lastTalkingInfo.value))) qstLogId.value = _body.chatBody?.qstLogId scrollToBottomNow() }else{ @@ -786,6 +786,7 @@ const submitAnswerNow = (val, cb) => { talkingVoice: '', type: 2, userInfo: {...choiceTeacherInfo.value}, + qstLogId: qstLogId.value, id: _id }) scrollToBottomNow()