From 23f09d33a220f4a21d71eda364016207095565c1 Mon Sep 17 00:00:00 2001 From: MTrun <1262327911@qq.com> Date: Thu, 10 Feb 2022 09:26:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/chartHistoryStore/chartHistoryStore.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/modules/chartHistoryStore/chartHistoryStore.ts b/src/store/modules/chartHistoryStore/chartHistoryStore.ts index 7938965a..49ac6103 100644 --- a/src/store/modules/chartHistoryStore/chartHistoryStore.ts +++ b/src/store/modules/chartHistoryStore/chartHistoryStore.ts @@ -14,7 +14,7 @@ import { export const useChartHistoryStoreStore = defineStore({ id: 'useChartHistoryStore', state: (): ChartHistoryStoreType => ({ - // 后退栈(记录栈) + // 后退栈 backStack: [], // 前进栈 forwardStack: [] @@ -55,7 +55,7 @@ export const useChartHistoryStoreStore = defineStore({ HistoryTargetTypeEnum.CANVAS ) }, - // * 推入记录栈 + // * 推入后退栈 pushBackStackItem( item: HistoryItemType | Array, notClear = false @@ -73,7 +73,7 @@ export const useChartHistoryStoreStore = defineStore({ this.forwardStack = [...this.forwardStack, ...item] else this.forwardStack.push(item) }, - // * 移出记录栈 + // * 移出后退栈 popBackStackItem( index?: number ): HistoryItemType[] | HistoryItemType | undefined {