Skip to content

Commit

Permalink
refactor: 🔨 Optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Sep 8, 2024
1 parent d18444f commit f61d820
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,21 +183,21 @@ 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('/')
const value = list.map(item => ({
label: item,
value: item,
...(presetMap.value[item] || {}),
...(presetMap[item] || {}),
}))
return value
Expand Down

0 comments on commit f61d820

Please sign in to comment.