Merge pull request #2556 from dataease/pr@dev@refactor_canvase-clear

refactor(仪表板): 仪表板清除画布只清理组件数据保留仪表板画布当前样式
This commit is contained in:
王嘉豪 2022-07-01 17:54:10 +08:00 committed by GitHub
commit 06e6297109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
},