diff --git a/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue b/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue index ef556a3..9c7948b 100644 --- a/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue +++ b/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue @@ -190,6 +190,7 @@ export default { // 如果都没有直接return 执行初始化 if (this.groups.length == 0) { this.init(); + localStorage.setItem("testData", JSON.stringify(this.list)); return; } // 如果一致 就直接赋值 @@ -200,6 +201,8 @@ export default { return; } else { let data = this.findMissingIds(this.testData, this.list); + this.testData = this.list; + localStorage.setItem("testData", JSON.stringify(this.testData)); this.testAddDel(this.groups, data.addArr, data.delArr); } } else { @@ -277,7 +280,6 @@ export default { const doc = iframeRef.contentDocument || iframeRef.contentWindow.document; const body = iframeRef.contentWindow.document.body; const height = body.scrollHeight; // 获取内容的高度 - console.log(height, "body高度"); iframeRef.style.height = `${height}px`; // 设置 iframe 的高度 // 获取第一个P标签 const firstP = doc.getElementsByTagName("p")[0];