Commit d8f38eebec79a224779ed0c34c640689fa92d62a
Merge branch 'ezTeach-2.0.0.0.release' of http://120.78.57.84/baoman/Ezquiz_Plat…
…form into ezTeach-2.0.0.0.release
Showing
1 changed file
with
3 additions
and
1 deletions
src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue
... | ... | @@ -190,6 +190,7 @@ export default { |
190 | 190 | // 如果都没有直接return 执行初始化 |
191 | 191 | if (this.groups.length == 0) { |
192 | 192 | this.init(); |
193 | + localStorage.setItem("testData", JSON.stringify(this.list)); | |
193 | 194 | return; |
194 | 195 | } |
195 | 196 | // 如果一致 就直接赋值 |
... | ... | @@ -200,6 +201,8 @@ export default { |
200 | 201 | return; |
201 | 202 | } else { |
202 | 203 | let data = this.findMissingIds(this.testData, this.list); |
204 | + this.testData = this.list; | |
205 | + localStorage.setItem("testData", JSON.stringify(this.testData)); | |
203 | 206 | this.testAddDel(this.groups, data.addArr, data.delArr); |
204 | 207 | } |
205 | 208 | } else { |
... | ... | @@ -277,7 +280,6 @@ export default { |
277 | 280 | const doc = iframeRef.contentDocument || iframeRef.contentWindow.document; |
278 | 281 | const body = iframeRef.contentWindow.document.body; |
279 | 282 | const height = body.scrollHeight; // 获取内容的高度 |
280 | - console.log(height, "body高度"); | |
281 | 283 | iframeRef.style.height = `${height}px`; // 设置 iframe 的高度 |
282 | 284 | // 获取第一个P标签 |
283 | 285 | const firstP = doc.getElementsByTagName("p")[0]; | ... | ... |