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) })