feat:添加beforeDestroy生命周期,解绑bus.$on 以及。on事件
This commit is contained in:
@@ -351,6 +351,9 @@ export default {
|
||||
},
|
||||
beforeDestroy () {
|
||||
this.closeSocket();
|
||||
this.term.off("selection");
|
||||
this.term.off("data")
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user