From 74ded8aed7bd5f2e4f3008a4566d8e3dd0510566 Mon Sep 17 00:00:00 2001
From: LooSheng <30114549+loosheng@users.noreply.github.com>
Date: 星期五, 24 三月 2023 17:48:35 +0800
Subject: [PATCH] perf: respect the writing style of pinia getters (#2645)

---
 src/store/modules/multipleTab.ts |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/store/modules/multipleTab.ts b/src/store/modules/multipleTab.ts
index 2062c93..f742c2f 100644
--- a/src/store/modules/multipleTab.ts
+++ b/src/store/modules/multipleTab.ts
@@ -48,14 +48,14 @@
     lastDragEndIndex: 0,
   }),
   getters: {
-    getTabList(): RouteLocationNormalized[] {
-      return this.tabList;
+    getTabList(state): RouteLocationNormalized[] {
+      return state.tabList;
     },
-    getCachedTabList(): string[] {
-      return Array.from(this.cacheTabList);
+    getCachedTabList(state): string[] {
+      return Array.from(state.cacheTabList);
     },
-    getLastDragEndIndex(): number {
-      return this.lastDragEndIndex;
+    getLastDragEndIndex(state): number {
+      return state.lastDragEndIndex;
     },
   },
   actions: {

--
Gitblit v1.8.0