diff --git a/src/components/Device/components/ControlBar/FileManage/FileDialog/index.vue b/src/components/Device/components/ControlBar/FileManage/FileDialog/index.vue index 6ead7933..5623cfb2 100644 --- a/src/components/Device/components/ControlBar/FileManage/FileDialog/index.vue +++ b/src/components/Device/components/ControlBar/FileManage/FileDialog/index.vue @@ -29,7 +29,7 @@ @click="handleBreadcrumb(item)" > - {{ item.label }} + {{ $t(item.label) }} @@ -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