fix: pdf and image icon

This commit is contained in:
puri-ph4tt 2023-12-06 13:11:15 +07:00
parent 3f29b65b2c
commit dea2df2f9b

View file

@ -17,7 +17,7 @@ export const useFileInfoStore = defineStore('info', () => {
word: { icon: 'mdi-file-word-outline', color: 'blue-11' },
excel: { icon: 'mdi-file-excel-outline', color: 'green-4' },
powerpoint: { icon: 'mdi-file-powerpoint-outline', color: 'orange-4' },
pdf: { icon: 'mdi-file-document-outline', color: 'red-11' },
pdf: { icon: 'mdi-file-pdf-outline', color: 'red-11' },
txt: { icon: 'mdi-file-document-outline', color: 'blue-11' },
image: { icon: 'mdi-file-image-outline', color: 'blue-11' },
}
@ -116,11 +116,11 @@ export const useFileInfoStore = defineStore('info', () => {
type: '.txt',
},
'image/x-png': {
'image/png': {
...file.image,
type: '.png',
},
'image/x-citrix-jpeg': {
'image/jpeg': {
...file.image,
type: '.jpg, jpeg',
},