lsc 9 months ago
parent
commit
79216fb0ae
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/components/pages/test/check/index.vue

+ 5 - 4
src/components/pages/test/check/index.vue

@@ -2040,15 +2040,16 @@ export default {
     window.removeEventListener("resize", this.checkScreenSize);
   },
   mounted() {
-    if(this.peopleId){
-      this.getUserInfo();
-    }
     this.checkScreenSize();
     window.addEventListener("resize", this.checkScreenSize);
     document.getElementsByTagName('html')[0].scrollTop = 0
     document.getElementsByTagName('html')[0].style.overflow = 'hidden'
     this.$nextTick(function () {
-      this.getData();
+      if(this.peopleId){
+        this.getUserInfo();
+      }else{
+        this.getData();
+      }
       // this.getClass2()
       this.changeHeight()
     });