refactor: support icon for another file and unknow

This commit is contained in:
puri-ph4tt 2023-12-07 16:22:49 +07:00
parent 17522c62be
commit 87fb1e753a
7 changed files with 104 additions and 88 deletions

View file

@ -340,7 +340,8 @@ async function submitFileForm(
<div class="q-px-md flex items-center justify-center">
<file-icon
size="preview"
:fileMimeType="value.fileType ? value.fileType : 'unknow'"
:fileMimeType="value.fileType ? value.fileType : undefined"
:fileName="value.fileName ? value.fileName : undefined"
/>
</div>
<div