fix:清空画布时候,选中右侧的表单没有被清除和关闭

This commit is contained in:
coderZcx 2023-07-25 22:11:36 +08:00
parent b0c37bc2a4
commit 088bc48f95

View File

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