Skip to content

Commit

Permalink
fix: 🐛 Repair part of internationalization Lost dynamics
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Sep 8, 2024
1 parent 70339b6 commit d18444f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@click="handleBreadcrumb(item)"
>
<el-button text class="!px-2" :icon="item.icon" :title="item.label">
{{ item.label }}
{{ $t(item.label) }}
</el-button>
</el-breadcrumb-item>
</el-breadcrumb>
Expand Down Expand Up @@ -183,21 +183,21 @@ const tableData = ref([])
const currentPath = ref('sdcard')
const presetMap = {
const presetMap = ref({
sdcard: {
icon: 'Iphone',
label: window.t('device.control.file.manager.storage'),
label: 'device.control.file.manager.storage',
value: 'sdcard',
},
}
})
const breadcrumbModel = computed(() => {
const list = currentPath.value.split('/')
const value = list.map(item => ({
label: item,
value: item,
...(presetMap[item] || {}),
...(presetMap.value[item] || {}),
}))
return value
Expand Down

0 comments on commit d18444f

Please sign in to comment.