Skip to content
Snippets Groups Projects
Commit 21ed6470 authored by 이권민's avatar 이권민
Browse files

[ADD] user time info에서 result 페이지로 연걸

parent c79dd678
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ import { useLocation, useNavigate, useParams } from "react-router-dom";
function UserTimeInfo() {
const location = useLocation();
const navigate = useNavigate();
const [state, setState] = useState(true);
const [availableSchedules, setAvailableSchedules] = useState(location.state.schedules);
......@@ -119,6 +120,8 @@ function UserTimeInfo() {
schedules: compressedData
});
alert("제출 완료");
navigate(`/result/${id}`);
}
catch (error) {
if (error.response) {
......@@ -145,6 +148,8 @@ function UserTimeInfo() {
const response = await axios.post(`http://localhost:3000/meetings/${id}/my/schedules/bulk`,{
schedules: compressedData
});
alert("제출 완료");
navigate(`/result/${id}`);
}
catch (error) {
if (error.response) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment