Merge branch 'phatt' into dev/front

This commit is contained in:
puri-ph4tt 2023-11-29 16:01:32 +07:00 committed by Methapon2001
commit 7d16320dea
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -130,8 +130,10 @@ export const useFileInfoStore = defineStore('info', () => {
if (mimeType === undefined) { if (mimeType === undefined) {
return 'unknown type' return 'unknown type'
} }
if (mimeFileMapping.hasOwnProperty(mimeType)) {
return mimeFileMapping[mimeType].type return mimeFileMapping[mimeType].type
} }
}
function getFormatDate(dateTime: string | undefined): string { function getFormatDate(dateTime: string | undefined): string {
if (dateTime === undefined) { if (dateTime === undefined) {