fix: getType file-info-data
This commit is contained in:
parent
171ddc4295
commit
7a17dec9dd
1 changed files with 3 additions and 1 deletions
|
|
@ -130,7 +130,9 @@ export const useFileInfoStore = defineStore('info', () => {
|
||||||
if (mimeType === undefined) {
|
if (mimeType === undefined) {
|
||||||
return 'unknown type'
|
return 'unknown type'
|
||||||
}
|
}
|
||||||
return mimeFileMapping[mimeType].type
|
if (mimeFileMapping.hasOwnProperty(mimeType)) {
|
||||||
|
return mimeFileMapping[mimeType].type
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getFormatDate(dateTime: string | undefined): string {
|
function getFormatDate(dateTime: string | undefined): string {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue