.
This commit is contained in:
parent
6f937d3800
commit
58100f848c
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user