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