From f61d820a6719335476144d452a73ddd0f5f2d035 Mon Sep 17 00:00:00 2001 From: viarotel Date: Mon, 9 Sep 2024 00:00:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=94=A8=20Optimize=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ControlBar/FileManage/FileDialog/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Device/components/ControlBar/FileManage/FileDialog/index.vue b/src/components/Device/components/ControlBar/FileManage/FileDialog/index.vue index 5623cfb2..668c5506 100644 --- a/src/components/Device/components/ControlBar/FileManage/FileDialog/index.vue +++ b/src/components/Device/components/ControlBar/FileManage/FileDialog/index.vue @@ -183,13 +183,13 @@ const tableData = ref([]) const currentPath = ref('sdcard') -const presetMap = ref({ +const presetMap = { sdcard: { icon: 'Iphone', 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.value[item] || {}), + ...(presetMap[item] || {}), })) return value