zhou zhou
6 小时以前 7c2bffa1a495cc4a3a263f654c08c231009c5c4e
rsf-design/src/router/adapters/backendMenuAdapter.js
@@ -231,7 +231,7 @@
function buildMeta(node) {
  const meta = {
    title: normalizeTitle(node.name || node.meta?.title || '')
    title: normalizeTitle(node.name || node.meta?.title || '', node.component)
  }
  const metaSource = node.meta && typeof node.meta === 'object' ? node.meta : node
  const supportedKeys = [
@@ -255,11 +255,11 @@
  return meta
}
function normalizeTitle(title) {
function normalizeTitle(title, componentKey) {
  if (typeof title !== 'string') {
    return ''
    return resolveBackendMenuTitle('', componentKey)
  }
  return resolveBackendMenuTitle(title)
  return resolveBackendMenuTitle(title, componentKey)
}
function normalizeIcon(icon) {