From 49f8eeef1dfbc4ba1eb3a4cc413e4a78eba0357c Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期六, 07 二月 2026 09:47:54 +0800
Subject: [PATCH] #取消页面缓存和更新页面组件

---
 rsf-admin/src/layout/TabsBar.jsx |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/rsf-admin/src/layout/TabsBar.jsx b/rsf-admin/src/layout/TabsBar.jsx
index d441914..c346104 100644
--- a/rsf-admin/src/layout/TabsBar.jsx
+++ b/rsf-admin/src/layout/TabsBar.jsx
@@ -210,15 +210,6 @@
         const tabIndex = tabs.findIndex(tab => tab.path === tabPath);
         const newTabs = tabs.filter(tab => tab.path !== tabPath);
 
-        // 娓呴櫎 KeepAlive 缂撳瓨
-        if (window.__keepAliveController?.drop) {
-            try {
-                window.__keepAliveController.drop(tabPath);
-            } catch (e) {
-                console.warn('Failed to drop KeepAlive cache:', e);
-            }
-        }
-
         // 濡傛灉鍏抽棴鐨勬槸褰撳墠鏍囩椤碉紝闇�瑕佸鑸埌鍏朵粬鏍囩椤�
         if (location.pathname === tabPath || isSameResource(location.pathname, tabPath)) {
             // 浼樺厛瀵艰埅鍒板乏杈圭殑鏍囩椤碉紝鍚﹀垯瀵艰埅鍒板彸杈圭殑
@@ -240,19 +231,6 @@
     const handleCloseAll = () => {
         const dashboardTab = tabs.find(tab => tab.path === '/dashboard');
         const newTabs = [dashboardTab || { ...FIXED_TABS[0] }];
-
-        // 娓呴櫎鎵�鏈� KeepAlive 缂撳瓨锛坉ashboard 闄ゅ锛�
-        if (window.__keepAliveController?.drop) {
-            tabs.forEach(tab => {
-                if (tab.path !== '/dashboard') {
-                    try {
-                        window.__keepAliveController.drop(tab.path);
-                    } catch (e) {
-                        // ignore
-                    }
-                }
-            });
-        }
 
         saveTabs(newTabs);
         setTabs(newTabs);

--
Gitblit v1.9.1