From 75f043dfa6660716364e66ee0b3cf99f44255686 Mon Sep 17 00:00:00 2001
From: DYL0109 <dn18191638832@163.com>
Date: 星期三, 16 四月 2025 19:20:36 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/develop1.0' into dyl_dev

---
 zhitan-vue/src/store/modules/tagsView.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/zhitan-vue/src/store/modules/tagsView.js b/zhitan-vue/src/store/modules/tagsView.js
index 9d07f33..0e6c6e2 100644
--- a/zhitan-vue/src/store/modules/tagsView.js
+++ b/zhitan-vue/src/store/modules/tagsView.js
@@ -20,6 +20,11 @@
         )
       },
       addVisitedView(view) {
+        // 杩囨护棣栭〉鏍囩
+        if (view.path === '/index' || view.path === '/' || view.name === 'Index') {
+          return;
+        }
+        
         if (this.visitedViews.some(v => v.path === view.path)) return
         this.visitedViews.push(
           Object.assign({}, view, {
@@ -110,7 +115,8 @@
       },
       delAllVisitedViews(view) {
         return new Promise(resolve => {
-          const affixTags = this.visitedViews.filter(tag => tag.meta.affix)
+          // 杩囨护鎺夐椤垫爣绛撅紝鍙繚鐣欏叾浠栧浐瀹氭爣绛�
+          const affixTags = this.visitedViews.filter(tag => tag.meta.affix && tag.path !== '/index' && tag.path !== '/' && tag.name !== 'Index')
           this.visitedViews = affixTags
           this.iframeViews = []
           resolve([...this.visitedViews])

--
Gitblit v1.9.3