lsc 1 year ago
parent
commit
7765c8a3e4
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/components/components/englishEva.vue

+ 5 - 5
src/components/components/englishEva.vue

@@ -8,7 +8,7 @@
     class="dialog_diy fullStyle"
   >
     <div class="engUpBox">
-      <div class="engUpTop">
+      <div class="engUpTop2">
         <div class="engTitle">
           <div>作文题目:</div>
           <div>{{ evaEngJson.teacherJson.engTitle }}</div>
@@ -287,17 +287,17 @@ export default {
   watch: {
     engEvaDialogVisible: {
       handler(newVal) {
-        if (newVal == true) {
+        if (newVal) {
           this.aiList.engText = this.evaEngJson.message.aiCode;
           this.teacherList.engText = this.evaEngJson.message.teacherCode;
           this.$forceUpdate();
           this.timer = setInterval(() => {
             this.topHeight =
-              document.querySelectorAll(".engUpTop")[0].offsetHeight;
-          }, 1000);
+              document.querySelectorAll(".engUpTop2")[0].offsetHeight ? document.querySelectorAll(".engUpTop2")[0].offsetHeight : 0 - 50;
+          }, 500);
           // setTimeout(() => {
           //   this.topHeight =
-          //     document.querySelectorAll(".engUpTop")[0].offsetHeight;
+          //     document.querySelectorAll(".engUpTop2")[0].offsetHeight;
           // }, 500);
         }else{
           clearInterval(this.timer);