Skip to content

Commit

Permalink
Feat: 다중 입력 API 연결(#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohinhyuk committed Oct 5, 2023
1 parent 13d072a commit 6d9ff32
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/modalForm/SemesterMagicianForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,14 @@ export default function SemesterMagicianForm({ handleClose }) {
<form
onSubmit={(e) => {
e.preventDefault();

console.log();
const bodyData = {
copyFrom: right.map((item) => item.id),
copyTo: thisSemester,
};
axiosInstance.post(`/api/mileage/semesters/multiple`, bodyData).then((res) => {
alert(res.data);
// handleClose();
});
}}
>
<Grid container spacing={2} justifyContent="center" alignItems="center">
Expand Down

0 comments on commit 6d9ff32

Please sign in to comment.