Procházet zdrojové kódy

fix(Student): 修复作业提交时未设置hasSubmitWork标志的问题

当iframe中没有找到作业内容时,需要设置hasSubmitWork为true以避免后续逻辑错误
lsc před 1 měsícem
rodič
revize
d6e66115fd
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      src/views/Student/index.vue

+ 1 - 0
src/views/Student/index.vue

@@ -1815,6 +1815,7 @@ const handleHomeworkSubmit = async () => {
         if (iframeWindow && iframeWindow.exposed_outputs) {
         if (iframeWindow && iframeWindow.exposed_outputs) {
           if (iframeWindow.exposed_outputs.length === 0) {
           if (iframeWindow.exposed_outputs.length === 0) {
             message.warning('没有找到作业内容')
             message.warning('没有找到作业内容')
+            hasSubmitWork = true
             continue
             continue
           }
           }
           console.log('执行iframe中的submitWork方法,参数可变')
           console.log('执行iframe中的submitWork方法,参数可变')