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,6 +190,7 @@ export default { | ||
| 190 | // 如果都没有直接return 执行初始化 | 190 | // 如果都没有直接return 执行初始化 |
| 191 | if (this.groups.length == 0) { | 191 | if (this.groups.length == 0) { |
| 192 | this.init(); | 192 | this.init(); |
| 193 | + localStorage.setItem("testData", JSON.stringify(this.list)); | ||
| 193 | return; | 194 | return; |
| 194 | } | 195 | } |
| 195 | // 如果一致 就直接赋值 | 196 | // 如果一致 就直接赋值 |
| @@ -200,6 +201,8 @@ export default { | @@ -200,6 +201,8 @@ export default { | ||
| 200 | return; | 201 | return; |
| 201 | } else { | 202 | } else { |
| 202 | let data = this.findMissingIds(this.testData, this.list); | 203 | let data = this.findMissingIds(this.testData, this.list); |
| 204 | + this.testData = this.list; | ||
| 205 | + localStorage.setItem("testData", JSON.stringify(this.testData)); | ||
| 203 | this.testAddDel(this.groups, data.addArr, data.delArr); | 206 | this.testAddDel(this.groups, data.addArr, data.delArr); |
| 204 | } | 207 | } |
| 205 | } else { | 208 | } else { |
| @@ -277,7 +280,6 @@ export default { | @@ -277,7 +280,6 @@ export default { | ||
| 277 | const doc = iframeRef.contentDocument || iframeRef.contentWindow.document; | 280 | const doc = iframeRef.contentDocument || iframeRef.contentWindow.document; |
| 278 | const body = iframeRef.contentWindow.document.body; | 281 | const body = iframeRef.contentWindow.document.body; |
| 279 | const height = body.scrollHeight; // 获取内容的高度 | 282 | const height = body.scrollHeight; // 获取内容的高度 |
| 280 | - console.log(height, "body高度"); | ||
| 281 | iframeRef.style.height = `${height}px`; // 设置 iframe 的高度 | 283 | iframeRef.style.height = `${height}px`; // 设置 iframe 的高度 |
| 282 | // 获取第一个P标签 | 284 | // 获取第一个P标签 |
| 283 | const firstP = doc.getElementsByTagName("p")[0]; | 285 | const firstP = doc.getElementsByTagName("p")[0]; |