refactor: 调整 eslint.config.js,优化代码格式

This commit is contained in:
2024-10-28 21:20:08 +08:00
parent 0e8fe5ff1f
commit 9e5dff144b
176 changed files with 5956 additions and 5624 deletions

View File

@@ -26,7 +26,7 @@ const getFileImg = computed<string>(() => {
return props.data.url || ''
}
if (!Object.keys(FileIcon).includes(extension)) {
return FileIcon['other']
return FileIcon.other
}
return FileIcon[extension]
})