From 5dcb8c5238dddcb0b98a7c4223646ebfc3649120 Mon Sep 17 00:00:00 2001 From: qkrxogmla Date: Wed, 21 May 2025 23:43:19 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B6=9C=EC=84=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/admin/AttendanceCode.jsx | 4 +--- frontend/src/pages/generation/Attendance.jsx | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/admin/AttendanceCode.jsx b/frontend/src/pages/admin/AttendanceCode.jsx index d93ea52..879f86f 100644 --- a/frontend/src/pages/admin/AttendanceCode.jsx +++ b/frontend/src/pages/admin/AttendanceCode.jsx @@ -19,9 +19,7 @@ const AttendanceCode = () => { console.log("기존 출석코드 자동 만료됨"); } catch (error) { if (error.response?.status !== 404) { - alert( - "초기화 중 오류: " + (error.response?.data?.message || "서버 오류") - ); + return; } } }; diff --git a/frontend/src/pages/generation/Attendance.jsx b/frontend/src/pages/generation/Attendance.jsx index dce08b1..a81d189 100644 --- a/frontend/src/pages/generation/Attendance.jsx +++ b/frontend/src/pages/generation/Attendance.jsx @@ -152,7 +152,7 @@ const Attendance = () => { // 유저가 입력한 출석 코드 서버에 전달(서버에서 출석코드 체크) - const res = await axios.post( + const res = await api.post( "/api/attendance/mark", {