Merge branch 'fe/feat/folder-upload' into 'fe/develop'
Fix: 빌드 에러 수정 See merge request s11-s-project/S11P21S002!118
This commit is contained in:
commit
dfa42e4a0d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user