Browse Source

fix no data warning

Michael Wang 3 năm trước cách đây
mục cha
commit
0ffdfbc783
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/features/OnlinePractice/OnlinePractice.vue

+ 1 - 1
src/features/OnlinePractice/OnlinePractice.vue

@@ -114,7 +114,7 @@ async function initData() {
   } else {
     examId = examList[0] && (examList[0].value as number);
   }
-  void getCourseList();
+  if (typeof examId === "number") void getCourseList();
 }
 
 onMounted(() => {