feat:添加beforeDestroy生命周期,解绑bus.$on 以及。on事件
This commit is contained in:
@@ -96,6 +96,10 @@
|
||||
},
|
||||
mounted() {
|
||||
this.initEditor();
|
||||
},
|
||||
beforeDestroy(){
|
||||
this.quill.off('selection-change');
|
||||
this.quill.off('text-change');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user