refactor(仪表板): 仪表板清除画布只清理组件数据保留仪表板画布当前样式

This commit is contained in:
wangjiahao 2022-07-01 17:53:24 +08:00
parent 6f7dd7dd7a
commit ab9895f468

View File

@ -372,7 +372,6 @@ export default {
},
clearCanvas() {
this.$store.commit('setComponentData', [])
this.$store.commit('setCanvasStyle', DEFAULT_COMMON_CANVAS_STYLE_STRING)
this.$store.commit('recordSnapshot', 'clearCanvas')
this.$store.commit('setInEditorStatus', false)
},