refactor: เพิ่มผู้เขียน
This commit is contained in:
parent
ae2e0edfd2
commit
cad864d224
2 changed files with 14 additions and 3 deletions
|
|
@ -145,6 +145,15 @@ async function downloadSubmit(path: string | undefined) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12 col-md-3">
|
||||||
|
<span>ผู้เขียน</span>
|
||||||
|
</div>
|
||||||
|
<div class="col-grow">
|
||||||
|
<span class="text-grey">{{ fileInfo?.author }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<q-separator />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12 col-md-3">
|
<div class="col-12 col-md-3">
|
||||||
<span>กลุ่ม/หมวดหมู่</span>
|
<span>กลุ่ม/หมวดหมู่</span>
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@ export interface StorageFile {
|
||||||
fileType: string
|
fileType: string
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
|
author: string,
|
||||||
|
metadata: Record<string, unknown>
|
||||||
category: string[]
|
category: string[]
|
||||||
keyword: string[]
|
keyword: string[]
|
||||||
updatedAt: string
|
updatedAt: string
|
||||||
|
|
@ -439,9 +441,9 @@ const useStorage = defineStore('storageStore', () => {
|
||||||
},
|
},
|
||||||
to: file?.name
|
to: file?.name
|
||||||
? {
|
? {
|
||||||
file: file.name,
|
file: file.name,
|
||||||
path: arr,
|
path: arr,
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
upload: !!file,
|
upload: !!file,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue