refactor(仪表板): 关闭编辑界面及时销毁定时任务

This commit is contained in:
wangjiahao
2022-08-18 18:24:17 +08:00
parent 7871deae45
commit d7c56b520f
2 changed files with 13 additions and 11 deletions

View File

@@ -205,6 +205,8 @@ export default {
eventBus.$off('preview', this.preview)
eventBus.$off('save', this.save)
eventBus.$off('clearCanvas', this.clearCanvas)
clearInterval(this.timer)
this.timer = null
},
methods: {
close() {