fix: 处理多个组件选中移动无法撤回的 bug

This commit is contained in:
奔跑的面条
2022-08-30 19:02:25 +08:00
parent 6d38d61816
commit 7f49e83557
2 changed files with 13 additions and 8 deletions
@@ -332,8 +332,8 @@ export const useChartEditStore = defineStore({
}
},
// * 移动组件
moveComponentList(item: CreateComponentType | CreateComponentGroupType) {
chartHistoryStore.createMoveHistory([item])
moveComponentList(item: Array<CreateComponentType | CreateComponentGroupType>) {
chartHistoryStore.createMoveHistory(item)
},
// * 更新组件列表某一项的值
updateComponentList(index: number, newData: CreateComponentType | CreateComponentGroupType) {