Merge branch 'fe/feat/folder-upload' into 'fe/develop'

Fix: 빌드 에러 수정

See merge request s11-s-project/S11P21S002!118
This commit is contained in:
김용수 2024-09-22 13:20:25 +09:00
commit dfa42e4a0d

View File

@ -60,10 +60,10 @@ export async function uploadImageFolder(memberId: number, projectId: number, fil
return api return api
.post( .post(
`/projects/${projectId}/folders/${0}/images/upload`, `/projects/${projectId}/folders/${0}/images/upload`,
{ folderZip: files, parentId } { folderZip: files, parentId },
// { {
// params: { memberId }, params: { memberId },
// } }
) )
.then(({ data }) => data) .then(({ data }) => data)
.catch((error) => { .catch((error) => {
@ -83,13 +83,9 @@ export async function uploadImageFolderZip(memberId: number, projectId: number,
// formData.append('parentId', blob); // formData.append('parentId', blob);
return api return api
.post( .post(`/projects/${projectId}/folders/${0}/images/upload`, formData, {
`/projects/${projectId}/folders/${0}/images/upload`, params: { memberId },
formData })
// {
// params: { memberId },
// }
)
.then(({ data }) => data) .then(({ data }) => data)
.catch((error) => { .catch((error) => {
return Promise.reject(error); return Promise.reject(error);