This commit is contained in:
nevermoregb 2025-03-17 11:14:42 +09:00
parent 6f937d3800
commit 58100f848c

View File

@ -65,7 +65,7 @@
<!-- 버튼 --> <!-- 버튼 -->
<div class="mb-4 d-flex justify-content-end"> <div class="mb-4 d-flex justify-content-end">
<button type="button" class="btn btn-info right" @click="goList"> <button type="button" class="btn btn-info right" @click="goBack">
<i class="bx bx-left-arrow-alt"></i> <i class="bx bx-left-arrow-alt"></i>
</button> </button>
<button type="button" class="btn btn-primary ms-1" @click="updateBoard"> <button type="button" class="btn btn-primary ms-1" @click="updateBoard">
@ -158,6 +158,12 @@
router.push('/board'); router.push('/board');
}; };
//
const goBack = () => {
accessStore.$reset();
router.back();
};
// //
const checkValidation = () => { const checkValidation = () => {
contentAlert.value = $common.isNotValidContent(content); contentAlert.value = $common.isNotValidContent(content);
@ -255,7 +261,7 @@
}); });
const { data } = await axios.put(`board/${currentBoardId.value}`, formData, { isFormData: true }); const { data } = await axios.put(`board/${currentBoardId.value}`, formData, { isFormData: true });
if (data.code === 200 && data.data === true) { if (data.code === 200) {
toastStore.onToast('게시물이 수정되었습니다.', 's'); toastStore.onToast('게시물이 수정되었습니다.', 's');
goList(); goList();
} else { } else {