删除多国语言配置,但是保留多国语功能

Former-commit-id: 0bc3afb90e0f6c085a680e39880f975717793b09 [formerly 0bc3afb90e0f6c085a680e39880f975717793b09 [formerly 0bc3afb90e0f6c085a680e39880f975717793b09 [formerly 0bc3afb90e0f6c085a680e39880f975717793b09 [formerly ec04dd1ed71e3ab98007073168daae880ad6bc9a [formerly 27f3e5cbfae961450c4738a9bc7aaa0e87d983bd]]]]]
Former-commit-id: fcfaf06a9d9c9422931b9c6d0e58dcf5f2e0e9fe
Former-commit-id: 1507dac206b02e590a62c343404760c4a10e1163
Former-commit-id: d32f3aa5207b09bcc61530258da7d285a7aca5e8 [formerly 7b9d2763618e82332e7348268bdbec79fd6b324f]
Former-commit-id: 671052ad6a2d10a151f0befa1020be7b21890553
Former-commit-id: 7096b9fa103901dd06b437b5b692cf85ecb35f2f
Former-commit-id: f1a6fbab21e2ecdf9752c8c4116b44c43d568bca
Former-commit-id: 6fa9f1a3a296b50663854ec2c2089fe78b392f29
Former-commit-id: 99e9372f7be157d28e3977584a5281d991a5264c
This commit is contained in:
FairyEver
2019-08-12 22:19:54 +08:00
parent b4e4df3917
commit 1f7c043dc5
23 changed files with 206 additions and 1104 deletions

View File

@@ -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))
])
}