当iframe中没有找到作业内容时,需要设置hasSubmitWork为true以避免后续逻辑错误
@@ -1815,6 +1815,7 @@ const handleHomeworkSubmit = async () => {
if (iframeWindow && iframeWindow.exposed_outputs) {
if (iframeWindow.exposed_outputs.length === 0) {
message.warning('没有找到作业内容')
+ hasSubmitWork = true
continue
}
console.log('执行iframe中的submitWork方法,参数可变')