lsc 3 týždňov pred
rodič
commit
537d6a2398
1 zmenil súbory, kde vykonal 2 pridanie a 4 odobranie
  1. 2 4
      src/views/Student/index.vue

+ 2 - 4
src/views/Student/index.vue

@@ -1045,9 +1045,6 @@ const handleHomeworkSubmit = async () => {
             const result = await iframeWindow.submitWork(...submitArgs)
             if (result instanceof Promise) {
               await result
-              console.log('submitWork异步执行完成')
-            } 
-            else {
               console.log('submitWork同步执行完成')
               message.success('作业提交成功')
               hasSubmitWork = true
@@ -1059,7 +1056,8 @@ const handleHomeworkSubmit = async () => {
                 slideIndex: slideIndex.value,
                 userid: props.userid
               })
-            }
+            } 
+
 
             break
           }