fix: add missing update field

This commit is contained in:
Methapon2001 2024-01-10 18:03:28 +07:00
parent 978de491df
commit 592a6296e9
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
3 changed files with 4 additions and 1 deletions

View file

@ -37,6 +37,7 @@ function triggerFileEdit(
description: string description: string
keyword: string[] keyword: string[]
category: string[] category: string[]
author: string
}, },
pathname: string, pathname: string,
file?: string, file?: string,
@ -49,6 +50,7 @@ function triggerFileEdit(
description: value.description, description: value.description,
keyword: value.keyword, keyword: value.keyword,
category: value.category, category: value.category,
author: value.author,
} }
fileNameLabel.value = file fileNameLabel.value = file
} }

View file

@ -246,6 +246,7 @@ function triggerFileDelete(pathname: string) {
description: value.description, description: value.description,
keyword: value.keyword, keyword: value.keyword,
category: value.category, category: value.category,
author: value.author,
}, },
value.pathname, value.pathname,
value.fileName, value.fileName,

View file

@ -83,7 +83,6 @@ const columns: QTableProps['columns'] = [
field: '', field: '',
style: 'width: 20px', style: 'width: 20px',
}, },
] ]
const socket = io(import.meta.env.VITE_API_HOST) const socket = io(import.meta.env.VITE_API_HOST)
@ -232,6 +231,7 @@ onMounted(() => {
description: value.description, description: value.description,
keyword: value.keyword, keyword: value.keyword,
category: value.category, category: value.category,
author: value.author,
}, },
value.pathname, value.pathname,
value.fileName, value.fileName,