feat: add author field
This commit is contained in:
parent
257a112eae
commit
04f33808d5
3 changed files with 43 additions and 10 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue