|
|
@@ -78,7 +78,7 @@
|
|
|
left: isFullscreen ? '0' : `${(containerWidth - slideWidth * canvasScale) / 2}px`,
|
|
|
top: isFullscreen ? '0' : `${(containerHeight - slideHeight * canvasScale) / 2}px`
|
|
|
}" @mousemove="handleLaserMove">
|
|
|
- <div class="homework-check-box" :class="{ 'fullscreen-mode': isFullscreen, 'fs-expanded': hwBoxExpanded }" v-if="currentSlideHasIframe && !currentSlideHasBilibiliVideo && (props.type == '1' || (props.type == '2' && currentIsResultArray.can && !is_cast_screen))" v-show="currentSlideHasIframe" :style="{
|
|
|
+ <div class="homework-check-box" :class="{ 'fullscreen-mode': isFullscreen, 'fs-expanded': hwBoxExpanded }" v-if="currentSlideHasIframe && !currentSlideHasBilibiliVideo && (props.type == '1' || (props.type == '2' && currentIsResultArray.can && !is_cast_screen))" :style="{
|
|
|
top: isFullscreen ? '0' : `0`
|
|
|
}" @click="isFullscreen && (hwBoxExpanded = !hwBoxExpanded)">
|
|
|
<div class="homework-check-box-item" @click.stop="openChoiceQuestionDetail2(slideIndex); hwBoxExpanded = false" :class="{'active': !choiceQuestionDetailDialogOpenList.includes(slideIndex)}">
|
|
|
@@ -1110,6 +1110,7 @@ const currentSlideHasEnglishSpeaking = computed(() => {
|
|
|
|
|
|
// 检查当前的结果状态
|
|
|
const currentIsResultArray = computed(() => {
|
|
|
+ console.log('isResultArray.value[slideIndex.value]', isResultArray.value[slideIndex.value])
|
|
|
return isResultArray.value[slideIndex.value] || {}
|
|
|
})
|
|
|
|
|
|
@@ -3765,7 +3766,11 @@ const getMessages = (msgObj: any) => {
|
|
|
// 获取是否展开结果数组
|
|
|
if (props.type == '2' && msgObj.type === 'isResultArray' && msgObj.courseid === props.courseid) {
|
|
|
try {
|
|
|
- isResultArray.value = JSON.parse(msgObj.isResultArray || '[]')
|
|
|
+ console.error('是否展开结果数组:', msgObj.isResultArray || '[]')
|
|
|
+ const newResultArray = JSON.parse(msgObj.isResultArray || '[]')
|
|
|
+ // 值未变化时跳过下游逻辑
|
|
|
+ if (JSON.stringify(newResultArray) === JSON.stringify(isResultArray.value)) return
|
|
|
+ isResultArray.value = newResultArray
|
|
|
}
|
|
|
catch (error) {
|
|
|
console.error('解析是否展开结果数组失败:', error)
|