diff --git a/src/renderer/src/views/classTask/container/classOverview.vue b/src/renderer/src/views/classTask/container/classOverview.vue
index 4a89f6e..b6c6d7e 100644
--- a/src/renderer/src/views/classTask/container/classOverview.vue
+++ b/src/renderer/src/views/classTask/container/classOverview.vue
@@ -10,7 +10,7 @@
等级分布
-
+
@@ -219,8 +219,8 @@ const initData = () => {
})
console.log('获取数据: ', data)
if (data.length === 0) return
+ if (!data[0].hasAnswers[0]) return
stuHasAnswers.value = [...data[0].hasAnswers]
- provide('hasAnswer', stuHasAnswers.value)
}
// 百分比现在 0-100
const percent = v => v > 1 ? 1 : v < 0 ? 0 : Math.round(v * 100)
diff --git a/src/renderer/src/views/classTask/container/classOverview/distribution.vue b/src/renderer/src/views/classTask/container/classOverview/distribution.vue
index 5ff15c1..bf55cd5 100644
--- a/src/renderer/src/views/classTask/container/classOverview/distribution.vue
+++ b/src/renderer/src/views/classTask/container/classOverview/distribution.vue
@@ -3,19 +3,26 @@
-
+
-
+