chore: format

This commit is contained in:
Methapon2001 2023-11-29 15:28:28 +07:00
parent e08850b90e
commit d7049fb429
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -95,7 +95,7 @@ export const useTreeDataStore = defineStore('changeCabinet', () => {
currentPath.value = pathname
const res = await axiosClient.get<EhrFolder[]>(
`${apiEndpoint}${requestPath}`
`${apiEndpoint}${requestPath}`,
)
const list = res.data.map((v) => ({
@ -246,7 +246,7 @@ export const useTreeDataStore = defineStore('changeCabinet', () => {
description: string
keyword: string
category: string
}
},
) {
loader.show()
@ -266,7 +266,7 @@ export const useTreeDataStore = defineStore('changeCabinet', () => {
{
file: file.name,
...metadata,
}
},
)
if (res && res.data.upload) {
@ -295,7 +295,7 @@ export const useTreeDataStore = defineStore('changeCabinet', () => {
keyword: string
category: string
},
file?: File
file?: File,
) {
loader.show()
@ -310,7 +310,7 @@ export const useTreeDataStore = defineStore('changeCabinet', () => {
const res = await axiosClient.patch<{ upload: string }>(
`${apiEndpoint}${requestPath}`,
{ file: file?.name, ...metadata }
{ file: file?.name, ...metadata },
)
if (res && res.data.upload) {