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" class="text-overflow-handle block q-px-md text-center"
style="max-width: 100%" style="max-width: 100%"
> >
{{ getFileNameFormat(value.fileName) }} {{ value.title }}
</div> </div>
</div> </div>
</div> </div>

View file

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