From 1194038279d8a378f2ce7cbea59a32d753becbf8 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 30 三月 2026 08:16:47 +0800
Subject: [PATCH] feat: update rsf-design and redis integration

---
 rsf-design/src/utils/router.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/rsf-design/src/utils/router.js b/rsf-design/src/utils/router.js
index 9f8b47e..7c5d64f 100644
--- a/rsf-design/src/utils/router.js
+++ b/rsf-design/src/utils/router.js
@@ -20,10 +20,17 @@
 }
 const formatMenuTitle = (title) => {
   if (title) {
-    if (title.startsWith('menus.')) {
+    if (title.startsWith('menus.') || title.startsWith('menu.')) {
       if (i18n.global.te(title)) {
         return $t(title)
       } else {
+        const fallbackTitle =
+          title.startsWith('menus.') && title.split('.').pop()
+            ? `menu.${title.split('.').pop()}`
+            : ''
+        if (fallbackTitle && i18n.global.te(fallbackTitle)) {
+          return $t(fallbackTitle)
+        }
         return title.split('.').pop() || title
       }
     }

--
Gitblit v1.9.1