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