From be29a8d97a13e4509bc8f642aa2c6bab985c2f49 Mon Sep 17 00:00:00 2001 From: chayoosang Date: Mon, 16 Oct 2023 17:13:22 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[PDW-37]=20fix:=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20url=20=EA=B0=80=EC=A0=B8=EC=98=A4=EA=B8=B0=20axios?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/manager/resourceManage/ResourceManageAdd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/manager/resourceManage/ResourceManageAdd.js b/src/pages/manager/resourceManage/ResourceManageAdd.js index 516e0a7..69ca0f0 100644 --- a/src/pages/manager/resourceManage/ResourceManageAdd.js +++ b/src/pages/manager/resourceManage/ResourceManageAdd.js @@ -206,7 +206,7 @@ function ResourceManageAdd(props) { }; const config = {"Content-Type": 'application/json'}; - axios.post("https://gpkzpnv8lh.execute-api.ap-northeast-2.amazonaws.com/dev/presignedurl-lambda", data, config) + ImageUrlAxios.post("", data) .then((Response) => { alert(Response) }) From c8fbf3d5e89811678d57f6c3bf159229b794ed09 Mon Sep 17 00:00:00 2001 From: chayoosang Date: Mon, 16 Oct 2023 17:21:02 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[PDW-37]=20fix:=20=EC=9E=90=EC=9B=90=20?= =?UTF-8?q?=EC=98=88=EC=95=BD=ED=95=98=EA=B8=B0=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/resourceInfo/ResourceInfo.js | 4 ++-- src/pages/booking/selectResource/SelectResource.js | 2 +- src/pages/manager/resourceManage/ResourceManageAdd.js | 11 +---------- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/components/resourceInfo/ResourceInfo.js b/src/components/resourceInfo/ResourceInfo.js index 5aa85c1..6fa8dfb 100644 --- a/src/components/resourceInfo/ResourceInfo.js +++ b/src/components/resourceInfo/ResourceInfo.js @@ -25,7 +25,7 @@ function ResourceInfo(props) { return ( - + @@ -47,4 +47,4 @@ function ResourceInfo(props) { ); } -export default ResourceInfo; \ No newline at end of file +export default ResourceInfo; diff --git a/src/pages/booking/selectResource/SelectResource.js b/src/pages/booking/selectResource/SelectResource.js index 6199951..4ecbd43 100644 --- a/src/pages/booking/selectResource/SelectResource.js +++ b/src/pages/booking/selectResource/SelectResource.js @@ -121,7 +121,7 @@ function SelectResource(props) {
- {resourceList.length === 0 ? : resourceList.map((resource, index) => )} + {resourceList.length === 0 ? : resourceList.map((resource, index) => )}
diff --git a/src/pages/manager/resourceManage/ResourceManageAdd.js b/src/pages/manager/resourceManage/ResourceManageAdd.js index 69ca0f0..e5b2f10 100644 --- a/src/pages/manager/resourceManage/ResourceManageAdd.js +++ b/src/pages/manager/resourceManage/ResourceManageAdd.js @@ -196,17 +196,8 @@ function ResourceManageAdd(props) { }; const getImageUrl = () => { - - - if (imageFile !== null) { - const data = { - 'ext' : String(imageFile.type.split("/", 2)[1]), - 'dir' : "photo" - }; - const config = {"Content-Type": 'application/json'}; - - ImageUrlAxios.post("", data) + ImageUrlAxios.get(`?ext=${imageFile.type.split("/", 2)[1]}&dir=photo`) .then((Response) => { alert(Response) })