refactor: เพิ่มผู้เขียน

This commit is contained in:
puri-ph4tt 2023-12-26 15:02:29 +07:00
parent ae2e0edfd2
commit cad864d224
2 changed files with 14 additions and 3 deletions

View file

@ -145,6 +145,15 @@ async function downloadSubmit(path: string | undefined) {
</div>
</div>
<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="col-12 col-md-3">
<span>กล/หมวดหม</span>

View file

@ -26,6 +26,8 @@ export interface StorageFile {
fileType: string
title: string
description: string
author: string,
metadata: Record<string, unknown>
category: string[]
keyword: string[]
updatedAt: string
@ -439,9 +441,9 @@ const useStorage = defineStore('storageStore', () => {
},
to: file?.name
? {
file: file.name,
path: arr,
}
file: file.name,
path: arr,
}
: undefined,
upload: !!file,
},