Browse Source

修复了建团不平均

1
mo 4 years ago
parent
commit
b86b28563e

+ 7 - 6
src/views/teamBuild/components/soundSetComponents/soundSetCore.vue

@@ -138,17 +138,18 @@ export default {
     }
     }
     this.init();
     this.init();
   },
   },
-  destroyed() {
-    window.removeEventListener("scroll", this.getScroll);
+  deactivated() {
+       window.removeEventListener("scroll", this.getScroll);
   },
   },
   activated() {
   activated() {
 
 
-    if (this.teamid && (this.teamid != this.$route.query.id)||(this.teamStatus !=this.$route.query.type)) {
+    if (this.teamid && this.teamid != this.$route.query.id||this.teamStatus !=this.$route.query.type) {
 
 
       this.init();
       this.init();
-    } else {
-      if (this.activeSoundList.length < 1) {
-         console.log('进来了',this.teamid,this.activeSoundList.length)
+    }
+
+    else {
+      if (!this.teamid&& this.activeSoundList.length < 1) {
         this.init();
         this.init();
       }
       }
     }
     }