Merge pull request #5766 from zcx992132258/dev

fix:清空画布时候,选中右侧的表单没有被清除和关闭
This commit is contained in:
王嘉豪 2023-07-31 14:13:00 +08:00 committed by GitHub
commit 1fe7126f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -541,6 +541,8 @@ export default {
clearCanvas() {
this.$store.commit('setComponentData', [])
this.$store.commit('recordSnapshot', 'clearCanvas')
bus.$emit('change_panel_right_draw', false)
this.$store.commit('setCurComponent', { component: null, index: null })
},
handlePreviewChange() {