|
@@ -138,17 +138,18 @@ export default {
|
|
|
}
|
|
|
this.init();
|
|
|
},
|
|
|
- destroyed() {
|
|
|
- window.removeEventListener("scroll", this.getScroll);
|
|
|
+ deactivated() {
|
|
|
+ window.removeEventListener("scroll", this.getScroll);
|
|
|
},
|
|
|
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();
|
|
|
- } else {
|
|
|
- if (this.activeSoundList.length < 1) {
|
|
|
- console.log('进来了',this.teamid,this.activeSoundList.length)
|
|
|
+ }
|
|
|
+
|
|
|
+ else {
|
|
|
+ if (!this.teamid&& this.activeSoundList.length < 1) {
|
|
|
this.init();
|
|
|
}
|
|
|
}
|