Ver Fonte

fix-参数错误

靳炳淑 há 6 anos atrás
pai
commit
1d2cb5a479
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/views/student/Code/ProjectDetail/Statistics.vue

+ 1 - 1
src/views/student/Code/ProjectDetail/Statistics.vue

@@ -102,7 +102,7 @@ export default {
   async mounted() {
   async mounted() {
     const { homeworkId, courseId } = this.$route.params;
     const { homeworkId, courseId } = this.$route.params;
     const groupId = await getStudentGroup(courseId);
     const groupId = await getStudentGroup(courseId);
-    const statistics = await getCodeWorkStatistics(homeworkId, groupId);
+    const statistics = await getCodeWorkStatistics(homeworkId, groupId.data.id);
     console.log(statistics);
     console.log(statistics);
     this.statistics = statistics.data;
     this.statistics = statistics.data;
     this.buildChartDOM = document.getElementById("build-chart");
     this.buildChartDOM = document.getElementById("build-chart");