|
|
@@ -1813,6 +1813,10 @@ const handleHomeworkSubmit = async () => {
|
|
|
// 由于TS类型检查,需通过 any 绕过类型限制
|
|
|
const iframeWindow = iframe.contentWindow as any
|
|
|
if (iframeWindow && iframeWindow.exposed_outputs) {
|
|
|
+ if (iframeWindow.exposed_outputs.length === 0) {
|
|
|
+ message.warning('没有找到作业内容')
|
|
|
+ continue
|
|
|
+ }
|
|
|
console.log('执行iframe中的submitWork方法,参数可变')
|
|
|
const iframeSlideIndex = slideIndex.value
|
|
|
const jsonString = JSON.stringify(iframeWindow.exposed_outputs)
|