Explorar o código

fix no data warning

Michael Wang %!s(int64=3) %!d(string=hai) anos
pai
achega
0ffdfbc783
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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(() => {