From cad864d224e9ab248c3cc937b07e152e2373f2ba Mon Sep 17 00:00:00 2001 From: puri-ph4tt Date: Tue, 26 Dec 2023 15:02:29 +0700 Subject: [PATCH] =?UTF-8?q?refactor:=20=E0=B9=80=E0=B8=9E=E0=B8=B4?= =?UTF-8?q?=E0=B9=88=E0=B8=A1=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B9=80=E0=B8=82?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/01_user/components/FileDownload.vue | 9 +++++++++ Services/client/src/stores/storage.ts | 8 +++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Services/client/src/modules/01_user/components/FileDownload.vue b/Services/client/src/modules/01_user/components/FileDownload.vue index bffeb36..dfa2bca 100644 --- a/Services/client/src/modules/01_user/components/FileDownload.vue +++ b/Services/client/src/modules/01_user/components/FileDownload.vue @@ -145,6 +145,15 @@ async function downloadSubmit(path: string | undefined) { +
+
+ ผู้เขียน +
+
+ {{ fileInfo?.author }} +
+
+
กลุ่ม/หมวดหมู่ diff --git a/Services/client/src/stores/storage.ts b/Services/client/src/stores/storage.ts index 0c464d6..f5a0b8f 100644 --- a/Services/client/src/stores/storage.ts +++ b/Services/client/src/stores/storage.ts @@ -26,6 +26,8 @@ export interface StorageFile { fileType: string title: string description: string + author: string, + metadata: Record 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, },