删除 i18n 相关代码(简化版没有多国语)
Former-commit-id: 51d667f035e4c756a1a599152fc033cb2ea338c3
This commit is contained in:
@@ -10,7 +10,7 @@ export function elMenuItem (createElement, menu) {
|
||||
...menu.iconSvg ? [
|
||||
createElement('d2-icon-svg', { props: { name: menu.iconSvg } })
|
||||
] : [],
|
||||
createElement('span', { slot: 'title' }, menu.title || this.$t('layout.header-aside.menu-item.label-default'))
|
||||
createElement('span', { slot: 'title' }, menu.title || '未命名菜单')
|
||||
])
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ export function elSubmenu (createElement, menu) {
|
||||
...menu.iconSvg ? [
|
||||
createElement('d2-icon-svg', { slot: 'title', props: { name: menu.iconSvg } })
|
||||
] : [],
|
||||
createElement('span', { slot: 'title' }, menu.title || this.$t('layout.header-aside.menu-item.label-default')),
|
||||
createElement('span', { slot: 'title' }, menu.title || '未命名菜单'),
|
||||
...menu.children.map((child, childIndex) => (child.children === undefined ? elMenuItem : elSubmenu).call(this, createElement, child))
|
||||
])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user