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/i18n.ts |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/utils/i18n.ts b/src/utils/i18n.ts
index 481010a..ab77af0 100644
--- a/src/utils/i18n.ts
+++ b/src/utils/i18n.ts
@@ -1,8 +1,12 @@
 // translate router.meta.title, be used in breadcrumb sidebar tagsview
 import i18n from '@/lang/index';
 
-export const translateRouteTitleI18n = (title: string): string => {
-  // 鍒ゆ柇鏄惁瀛樺湪鍥介檯鍖栭厤缃紝濡傛灉娌℃湁鍘熺敓杩斿洖
+/**
+ * 鑾峰彇鍥介檯鍖栬矾鐢憋紝濡傛灉涓嶅瓨鍦ㄥ垯鍘熺敓杩斿洖
+ * @param title 璺敱鍚嶇О
+ * @returns {string}
+ */
+export const translateRouteTitle = (title: string): string => {
   const hasKey = i18n.global.te('route.' + title);
   if (hasKey) {
     const translatedTitle = i18n.global.t('route.' + title);

--
Gitblit v1.9.3