diff --git a/src/components/TestPanel.vue b/src/components/TestPanel.vue index 9bfaa8d..abfe77d 100644 --- a/src/components/TestPanel.vue +++ b/src/components/TestPanel.vue @@ -554,6 +554,7 @@ export default { this.getQueryProject(this.value1) this.isSubmit = false this.countVal = 0 + this.grade = 0 newmain.$emit("isSubmit", this.isSubmit) }, counterFn(counterTime) { diff --git a/src/components/codemirror.vue b/src/components/codemirror.vue index 362a99a..b1b164d 100644 --- a/src/components/codemirror.vue +++ b/src/components/codemirror.vue @@ -475,6 +475,7 @@ export default { font-size: 18px; margin: 10px; position: absolute; + width: calc(100% - 14px); height: calc(100vh - 230px); overflow: auto; }