Procházet zdrojové kódy

复核错误处理

Michael Wang před 4 roky
rodič
revize
f433e3b08f
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/features/inspect/Inspect.vue

+ 2 - 1
src/features/inspect/Inspect.vue

@@ -152,8 +152,9 @@ export default defineComponent({
         questions
       )) as any;
       if (res.data.success && store.currentTask) {
-        fetchTask();
+        if (!isSingleStudent) fetchTask();
       } else {
+        message.error({ content: res.data.message, duration: 10 });
         console.log(res.data.message);
       }
     };