From 58d7e50de3432a4772ec0749661ec1f51c9c6086 Mon Sep 17 00:00:00 2001
From: NickLuo <69481226@qq.com>
Date: 星期三, 13 十二月 2023 08:55:46 +0800
Subject: [PATCH] !63 关闭动态路由tab页签时不清理组件缓存 * 动态路由页面关闭时不清理组件缓存,避免清理已打开的多个路由页面缓存

---
 src/utils/dynamicTitle.ts |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/utils/dynamicTitle.ts b/src/utils/dynamicTitle.ts
index f6ba1d9..8e23ef8 100644
--- a/src/utils/dynamicTitle.ts
+++ b/src/utils/dynamicTitle.ts
@@ -5,10 +5,10 @@
  * 鍔ㄦ�佷慨鏀规爣棰�
  */
 export const useDynamicTitle = () => {
-	const settingsStore = useSettingsStore();
-	if (settingsStore.dynamicTitle) {
-		document.title = settingsStore.title + ' - ' + import.meta.env.VITE_APP_TITLE;
-	} else {
-		document.title = defaultSettings.title as string;
-	}
+  const settingsStore = useSettingsStore();
+  if (settingsStore.dynamicTitle) {
+    document.title = settingsStore.title + ' - ' + import.meta.env.VITE_APP_TITLE;
+  } else {
+    document.title = defaultSettings.title as string;
+  }
 };

--
Gitblit v1.9.3