feat:部分代码去除事件监听

This commit is contained in:
zhangyu
2020-11-20 15:02:36 +08:00
parent 075fc8a5ff
commit 8fbfdc5dd2
13 changed files with 253 additions and 148 deletions

View File

@@ -109,7 +109,7 @@
</div>
<div class="content-col-content" v-loading="topologyLoading">
<transition name = "el-zoom-in-center">
<div style="width: 100%;height: 100%;position: relative" v-if="allProject.length>0">
<div style="width: 100%;height: 100%;position: relative" v-if="allProject&&allProject.length>0">
<el-carousel :interval="5000" arrow="hover" :trigger="'click'">
<el-carousel-item v-for="(item,index) in allProject" :key="index">
<div class="maskLayer" @click="toProject(item)"></div>
@@ -1589,11 +1589,12 @@
// };
},
beforeDestroy(){
this.allProject=null;
this.allProject=[];
},
destroyed() {
clearInterval(this.freshDataTimer);
clearInterval(this.freshDateTimer);
this.allProject=null;
}
}
</script>