Explorar el Código

fix 切换考试与作业时的loading状态

Michael Wang hace 3 años
padre
commit
e5728b8bc0
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/features/OnlineExam/OnlineExamHome.vue

+ 1 - 0
src/features/OnlineExam/OnlineExamHome.vue

@@ -27,6 +27,7 @@ onMounted(async () => {
 watch(
   () => examType,
   async () => {
+    loading = true;
     await getData().finally(() => (loading = false));
   }
 );