保存试卷
{
+ list.push(...item.subQuestionIds);
+ });
+ if (list.length < 1 && !list) {
+ return true;
+ } else {
+ return false;
+ }
+ },
},
};
@@ -842,7 +862,11 @@ export default {
justify-content: space-around;
align-items: center;
}
-
+ .binding {
+ display: flex;
+ padding: 20px 80px;
+ justify-content: space-around;
+ }
.test-group {
.test-group-title {
position: relative;
diff --git a/src/views/basic/askTestQuestion/wrongQuestion.vue b/src/views/basic/askTestQuestion/wrongQuestion.vue
index c714249..bd7203f 100644
--- a/src/views/basic/askTestQuestion/wrongQuestion.vue
+++ b/src/views/basic/askTestQuestion/wrongQuestion.vue
@@ -660,7 +660,12 @@ export default {
const doc = iframeRef.contentDocument || iframeRef.contentWindow.document;
const body = iframeRef.contentWindow.document.body;
body.style.overflowX = "hidden"; // 不允许出现横向滚动条
- const height = body.scrollHeight; // 获取内容的高度
+ const height = body.offsetHeight; // 获取内容的高度
+ console.log(height, "height");
+ // console.log("body.offsetHeight:", body.offsetHeight);
+ // console.log("body.clientHeight:", body.clientHeight);
+ // console.log("body.scrollHeight:", body.scrollHeight);
+
iframeRef.style.height = `${height + 20}px`; // 设置 iframe 的高度
// 获取第一个P标签
const firstP = doc.getElementsByTagName("p")[0];
@@ -726,8 +731,6 @@ export default {
}
}
.topic {
- height: fit-content;
- max-height: 500px;
margin-top: 15px;
display: flex;
flex-direction: column;