Explorar o código

复核错误处理

Michael Wang %!s(int64=4) %!d(string=hai) anos
pai
achega
f433e3b08f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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);
       }
     };