Commit e6126da99594da242f16efa7e5a2b2f2e3a383a0
1 parent
845cad7c
wip: 代码提交
Showing
1 changed file
with
0 additions
and
2 deletions
src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue
| @@ -299,7 +299,6 @@ export default { | @@ -299,7 +299,6 @@ export default { | ||
| 299 | if (this.groups.length == 0) { | 299 | if (this.groups.length == 0) { | 
| 300 | this.init(); | 300 | this.init(); | 
| 301 | localStorage.setItem("testData", JSON.stringify(this.list)); | 301 | localStorage.setItem("testData", JSON.stringify(this.list)); | 
| 302 | - this.uniqueById(this.groups); | ||
| 303 | return; | 302 | return; | 
| 304 | } | 303 | } | 
| 305 | // 如果一致 就直接赋值 | 304 | // 如果一致 就直接赋值 | 
| @@ -389,7 +388,6 @@ export default { | @@ -389,7 +388,6 @@ export default { | ||
| 389 | const doc = iframeRef.contentDocument || iframeRef.contentWindow.document; | 388 | const doc = iframeRef.contentDocument || iframeRef.contentWindow.document; | 
| 390 | const body = iframeRef.contentWindow.document.body; | 389 | const body = iframeRef.contentWindow.document.body; | 
| 391 | const height = body.scrollHeight; // 获取内容的高度 | 390 | const height = body.scrollHeight; // 获取内容的高度 | 
| 392 | - console.log(height, "body高度"); | ||
| 393 | iframeRef.style.height = `${height}px`; // 设置 iframe 的高度 | 391 | iframeRef.style.height = `${height}px`; // 设置 iframe 的高度 | 
| 394 | // 获取第一个P标签 | 392 | // 获取第一个P标签 | 
| 395 | const firstP = doc.getElementsByTagName("p")[0]; | 393 | const firstP = doc.getElementsByTagName("p")[0]; |