From 3042e874e4694a5c583935cadd09b67e89691116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Sun, 20 Oct 2024 15:23:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=88=A4=E6=96=AD=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=AD=A6=E7=94=9F=E5=9B=9E=E7=AD=94=E9=A2=98=E7=9B=AE?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/classTask/container/classOverview.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/src/views/classTask/container/classOverview.vue b/src/renderer/src/views/classTask/container/classOverview.vue index fbe48ce..4a89f6e 100644 --- a/src/renderer/src/views/classTask/container/classOverview.vue +++ b/src/renderer/src/views/classTask/container/classOverview.vue @@ -218,6 +218,7 @@ const initData = () => { return { def: o, id: o.id, type: o.worktype, active: [], points, accSum, rightSum, children,hasAnswers } }) console.log('获取数据: ', data) + if (data.length === 0) return stuHasAnswers.value = [...data[0].hasAnswers] provide('hasAnswer', stuHasAnswers.value) }