fix: show title, keyword&category join with ,

This commit is contained in:
puri-ph4tt 2023-12-01 16:15:06 +07:00
parent 774b8fb2fd
commit 64d4ca09a5
2 changed files with 5 additions and 15 deletions

View file

@ -323,7 +323,7 @@ async function submitFileForm(
class="text-overflow-handle block q-px-md text-center"
style="max-width: 100%"
>
{{ getFileNameFormat(value.fileName) }}
{{ value.title }}
</div>
</div>
</div>

View file

@ -54,7 +54,7 @@ async function downloadSubmit(path: any) {
color="primary"
/>
</q-btn>
{{ getFileNameFormat(fileInfo?.fileName) }}</span
{{ fileInfo?.title }}</span
>
</div>
@ -85,7 +85,7 @@ async function downloadSubmit(path: any) {
class="text-overflow-handle block q-px-md text-center"
style="max-width: 100%"
>
{{ getFileNameFormat(fileInfo?.fileName) }}
{{ fileInfo?.title }}
</div>
</div>
<div class="column q-py-sm">
@ -133,12 +133,7 @@ async function downloadSubmit(path: any) {
<span>กล/หมวดหม</span>
</div>
<div class="col-grow">
<span
class="text-grey"
v-for="category in fileInfo?.category"
:key="category"
>{{ category }}</span
>
<span class="text-grey">{{ fileInfo?.category.join(', ') }}</span>
</div>
</div>
<q-separator />
@ -147,12 +142,7 @@ async function downloadSubmit(path: any) {
<span>คำสำค</span>
</div>
<div class="col-grow">
<span
class="text-grey"
v-for="keyword in fileInfo?.keyword"
:key="keyword"
>{{ keyword }}&nbsp;</span
>
<span class="text-grey">{{ fileInfo?.keyword.join(', ') }}</span>
</div>
</div>
<q-separator />