diff --git a/src/store/modules/chartEditStore/chartEditStore.ts b/src/store/modules/chartEditStore/chartEditStore.ts index dd31e62c..5d0663f6 100644 --- a/src/store/modules/chartEditStore/chartEditStore.ts +++ b/src/store/modules/chartEditStore/chartEditStore.ts @@ -311,7 +311,7 @@ export const useChartEditStore = defineStore({ // 历史记录 if (isHistory) { - chartHistoryStore.createLaryerHistory( + chartHistoryStore.createLayerHistory( setIndex(targetData, index), isEnd ? HistoryActionTypeEnum.BOTTOM : HistoryActionTypeEnum.TOP ) @@ -359,7 +359,7 @@ export const useChartEditStore = defineStore({ // 历史记录 if (isHistory) { - chartHistoryStore.createLaryerHistory( + chartHistoryStore.createLayerHistory( targetItem, isDown ? HistoryActionTypeEnum.DOWN : HistoryActionTypeEnum.UP ) diff --git a/src/store/modules/chartHistoryStore/chartHistoryStore.ts b/src/store/modules/chartHistoryStore/chartHistoryStore.ts index 9d29fbbe..31b0425d 100644 --- a/src/store/modules/chartHistoryStore/chartHistoryStore.ts +++ b/src/store/modules/chartHistoryStore/chartHistoryStore.ts @@ -180,7 +180,7 @@ export const useChartHistoryStore = defineStore({ ) }, // * 改变层级组件记录 - createLaryerHistory( + createLayerHistory( item: CreateComponentType, type: | HistoryActionTypeEnum.TOP