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