mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-16 12:08:12 +00:00
perf: 优化编辑器对象销毁的问题
This commit is contained in:
parent
4e8053470d
commit
a0174cdedd
@ -154,13 +154,22 @@
|
||||
this.content = this.value;
|
||||
this.init();
|
||||
},
|
||||
beforeDestroy() {
|
||||
if (this.editor !== null) {
|
||||
this.editor.destroy()
|
||||
this.editor = null
|
||||
}
|
||||
this.spinShow = true;
|
||||
$A(this.$refs.myTextarea).show();
|
||||
},
|
||||
activated() {
|
||||
this.content = this.value;
|
||||
this.init();
|
||||
},
|
||||
deactivated() {
|
||||
if (this.editor !== null) {
|
||||
this.editor.destroy();
|
||||
this.editor.destroy()
|
||||
this.editor = null
|
||||
}
|
||||
this.spinShow = true;
|
||||
$A(this.$refs.myTextarea).show();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user