mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2025-01-24 07:24:05 +01:00
fix: 🐛 Repair part of internationalization Lost dynamics
This commit is contained in:
parent
70339b6ff6
commit
d18444f28b
@ -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>
|
||||
@ -183,13 +183,13 @@ 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('/')
|
||||
@ -197,7 +197,7 @@ const breadcrumbModel = computed(() => {
|
||||
const value = list.map(item => ({
|
||||
label: item,
|
||||
value: item,
|
||||
...(presetMap[item] || {}),
|
||||
...(presetMap.value[item] || {}),
|
||||
}))
|
||||
|
||||
return value
|
||||
|
Loading…
x
Reference in New Issue
Block a user