Compare commits

..

No commits in common. "7ae5fcda1e91b6d2b4ee6e69a7b6f69297fe4e0d" and "b841fe876d7c1cc3ed1df741f875b7b53824d0f2" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

@ -95,7 +95,7 @@ export const useChartDataFetch = (
fetchFn()
},
{
immediate: true,
immediate: false,
deep: true
}
)

View File

@ -614,7 +614,7 @@ export const useChartEditStore = defineStore({
} else {
const group = historyData[0] as CreateComponentGroupType
group.groupList.forEach(item => {
ids.unshift(item.id)
ids.push(item.id)
})
}
this.setGroup(ids, false)
@ -763,7 +763,7 @@ export const useChartEditStore = defineStore({
// 高
groupAttr.b = b < y + h ? y + h : b
targetList.unshift(item)
targetList.push(item)
historyList.push(toRaw(item))
})
@ -809,7 +809,7 @@ export const useChartEditStore = defineStore({
if (isHistory) chartHistoryStore.createUnGroupHistory(cloneDeep([targetGroup]))
// 分离组件并还原位置属性
targetGroup.groupList.reverse().forEach(item => {
targetGroup.groupList.forEach(item => {
item.attr.x = item.attr.x + targetGroup.attr.x
item.attr.y = item.attr.y + targetGroup.attr.y
if (!callBack) {