feat: add author field

This commit is contained in:
Methapon2001 2024-01-10 17:48:33 +07:00
parent 257a112eae
commit 04f33808d5
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
3 changed files with 43 additions and 10 deletions

View file

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