zhou zhou
14 小时以前 1194038279d8a378f2ce7cbea59a32d753becbf8
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
      }
    }