From 5d7b63225ca327aee2650fd6d36c3a7fc8f11cf1 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期一, 28 十月 2024 15:40:51 +0800
Subject: [PATCH] Merge branch 'test' of http://47.103.154.90:83/r/WI/Web.V1.0 into test

---
 src/stores/keepAliveNames.ts |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/stores/keepAliveNames.ts b/src/stores/keepAliveNames.ts
index 981198f..1da076d 100644
--- a/src/stores/keepAliveNames.ts
+++ b/src/stores/keepAliveNames.ts
@@ -18,7 +18,9 @@
 			this.keepAliveNames = data;
 		},
 		async addCachedView(view: any) {
-			if (view.meta.isKeepAlive) this.cachedViews?.push(view.name);
+			if (view.meta.isKeepAlive && !this.cachedViews?.includes(view.name)) {
+				this.cachedViews?.push(view.name);
+			}
 		},
 		async delCachedView(view: any) {
 			const index = this.cachedViews.indexOf(view.name);

--
Gitblit v1.9.3