From d18444f28ba1046018bc419e0068ce12c73b2d48 Mon Sep 17 00:00:00 2001 From: viarotel Date: Sun, 8 Sep 2024 23:56:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Repair=20part=20of=20inte?= =?UTF-8?q?rnationalization=20Lost=20dynamics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ControlBar/FileManage/FileDialog/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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