From 727fec1a6cbc14c78e08ea560cdf46d536c71a36 Mon Sep 17 00:00:00 2001 From: yanghang Date: Fri, 18 Jul 2025 18:07:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/components/talkingItem.vue | 2 +- src/pages/course/study.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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()