|
@@ -8077,8 +8077,9 @@ export default {
|
|
|
},
|
|
|
//自动获取剪贴板
|
|
|
pasteOption() {
|
|
|
- let copyData = top.document.querySelectorAll("#AIChat iframe")[0].contentWindow.copyData
|
|
|
- if(!copyData || !copyData.selectData.length){
|
|
|
+ let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
|
|
|
+ let copyData = iframe.contentWindow.copyData
|
|
|
+ if(!iframe || !copyData || !copyData.selectData.length){
|
|
|
this.$message.error("请使用AI共创生成题目")
|
|
|
return;
|
|
|
}
|
|
@@ -8106,7 +8107,7 @@ export default {
|
|
|
}
|
|
|
this.testJson.testJson.push({
|
|
|
teststitle: selectData[i].subject,
|
|
|
- testItem: selectData[i].length,
|
|
|
+ testItem: selectData[i].options.length,
|
|
|
checkList: selectData[i].options,
|
|
|
timuList: [],
|
|
|
answer: answer,
|