add destroy function
This commit is contained in:
@@ -195,6 +195,12 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
destroyEditor() {
|
||||||
|
if (this.view) {
|
||||||
|
this.view.destroy()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
updateMenuActions() {
|
updateMenuActions() {
|
||||||
this.menuActions = buildMenuActions({
|
this.menuActions = buildMenuActions({
|
||||||
schema: this.schema,
|
schema: this.schema,
|
||||||
@@ -233,4 +239,8 @@ export default {
|
|||||||
this.initEditor()
|
this.initEditor()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
beforeDestroy() {
|
||||||
|
this.destroyEditor()
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user