refactor: 复制组件后将焦点定位到新视图

This commit is contained in:
wangjiahao 2022-10-27 20:46:55 +08:00
parent 9ceb017d2a
commit 05c220c5d3

View File

@ -259,6 +259,7 @@ const data = {
} else {
state.componentData.push(component)
}
this.commit('setCurComponent', { component: component, index: index ? index : state.componentData.length - 1 })
},
removeViewFilter(state, componentId) {
state.componentData = state.componentData.map(item => {