| | |
| | | |
| | | 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 = [ |
| | |
| | | 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) { |