feat:部分代码去除事件监听
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user