Przeglądaj źródła

DLWork查看某个学生project详情

ChenYizong 7 lat temu
rodzic
commit
15125af40f
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      src/views/teacher/DlWork/test.vue

+ 3 - 2
src/views/teacher/DlWork/test.vue

@@ -48,11 +48,12 @@ export default {
     };
   },
   async mounted() {
-    const { dlworkId } = this.$route.params.dlworkId;
-    const { userId } = this.$route.params.userId;
+    const { dlworkId } = this.$route.params;
+    const { userId } = this.$route.params;
     this.detailLoading = true;
     const detail = await getStudentDLProjectDetail(dlworkId, userId);
     this.dlDetail = detail.data;
+    console.log(this.dlDetail);
 
     this.detailLoading = false;
   }