Merge pull request #3505 from dataease/pr@dev@refactor_panel-copy

refactor: 复制组件后将焦点定位到新视图
This commit is contained in:
fit2cloud-chenyw 2022-10-27 20:58:39 +08:00 committed by GitHub
commit d61c2b6059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 => {