lsc 9 mesi fa
parent
commit
79216fb0ae
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  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);
     window.removeEventListener("resize", this.checkScreenSize);
   },
   },
   mounted() {
   mounted() {
-    if(this.peopleId){
-      this.getUserInfo();
-    }
     this.checkScreenSize();
     this.checkScreenSize();
     window.addEventListener("resize", this.checkScreenSize);
     window.addEventListener("resize", this.checkScreenSize);
     document.getElementsByTagName('html')[0].scrollTop = 0
     document.getElementsByTagName('html')[0].scrollTop = 0
     document.getElementsByTagName('html')[0].style.overflow = 'hidden'
     document.getElementsByTagName('html')[0].style.overflow = 'hidden'
     this.$nextTick(function () {
     this.$nextTick(function () {
-      this.getData();
+      if(this.peopleId){
+        this.getUserInfo();
+      }else{
+        this.getData();
+      }
       // this.getClass2()
       // this.getClass2()
       this.changeHeight()
       this.changeHeight()
     });
     });