게시판관리 버튼 수정

thkim
유민형 2024-02-14 15:32:38 +09:00
parent 694f0ef918
commit ff036473d7
1 changed files with 4 additions and 3 deletions

View File

@ -64,7 +64,8 @@ function EgovAdminBoardEdit({props, reloadFunction}) {
}, },
(resp) => { (resp) => {
if (Number(resp.resultCode) === Number(CODE.RCV_SUCCESS)) { if (Number(resp.resultCode) === Number(CODE.RCV_SUCCESS)) {
alert("저장되었습니다.") alert("저장되었습니다.");
reloadFunction();
} else if (Number(resp.resultCode) === Number(CODE.RCV_ERROR_AUTH)) { } else if (Number(resp.resultCode) === Number(CODE.RCV_ERROR_AUTH)) {
console.log("토큰 갱신중.") console.log("토큰 갱신중.")
} else { } else {
@ -105,7 +106,7 @@ function EgovAdminBoardEdit({props, reloadFunction}) {
return ( return (
<> <>
{/* <!-- 본문 --> */} {/* <!-- 본문 --> */}
<Modal.Header> <Modal.Header closeButton>
<Modal.Title> <Modal.Title>
{modeInfo.mode === CODE.MODE_CREATE && '게시판 생성'} {modeInfo.mode === CODE.MODE_CREATE && '게시판 생성'}
{modeInfo.mode === CODE.MODE_MODIFY && '게시판 수정'} {modeInfo.mode === CODE.MODE_MODIFY && '게시판 수정'}
@ -148,7 +149,7 @@ function EgovAdminBoardEdit({props, reloadFunction}) {
</div> </div>
<div className="right_col btn1"> <div className="right_col btn1">
<Link to={URL.ADMIN_BOARD} className="btn btn_blue_h46 w_100">목록</Link> <button type={"button"} className="btn btn_blue_h46 w_100" onClick={()=>{reloadFunction()}}>목록</button>
</div> </div>
</div> </div>
{/* <!--// 버튼영역 --> */} {/* <!--// 버튼영역 --> */}