diff --git a/src/views/basic/askTestQuestion/components/analysisDialog.vue b/src/views/basic/askTestQuestion/components/analysisDialog.vue index 62e13b9..61271a0 100644 --- a/src/views/basic/askTestQuestion/components/analysisDialog.vue +++ b/src/views/basic/askTestQuestion/components/analysisDialog.vue @@ -60,7 +60,10 @@ export default { const body = iframeRef.contentWindow.document.body; body.style.overflowX = "hidden"; // 不允许出现横向滚动条 const height = body.scrollHeight; // 获取内容的高度 - iframeRef.style.height = `${height + 20}px`; // 设置 iframe 的高度 + console.log(height, "height"); + console.log(body, "body"); + + iframeRef.style.height = `${height}px`; // 设置 iframe 的高度 // 获取第一个P标签 const firstP = doc.getElementsByTagName("p")[0]; // 或者修改第一个 < p > 标签的内容; diff --git a/src/views/basic/askTestQuestion/wrongQuestion.vue b/src/views/basic/askTestQuestion/wrongQuestion.vue index ee8cd87..80060fd 100644 --- a/src/views/basic/askTestQuestion/wrongQuestion.vue +++ b/src/views/basic/askTestQuestion/wrongQuestion.vue @@ -306,7 +306,7 @@ export default { formData: { classId: 1, // 班级选中 // type: "onDay", // 时间类型 - type: "term", // 时间类型 + type: "onDay", // 时间类型 dateRange: ["2022-03-01", "2023-05-01"], // 开始结束时间 startScoreRate: 0, // 开始区间 endScoreRate: 100, // 结束区间