게시글 수정 시 상세 페이지로 이동 하도록 변경
This commit is contained in:
parent
3b50c84118
commit
e447968ecf
@ -163,21 +163,22 @@
|
|||||||
name: `${file.originalName}.${file.extension}`,
|
name: `${file.originalName}.${file.extension}`,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// 목록 페이지로 이동
|
// 상세 페이지로 이동
|
||||||
const goList = () => {
|
const goList = () => {
|
||||||
accessStore.$reset();
|
accessStore.$reset();
|
||||||
|
|
||||||
const getFilter = localStorage.getItem(`boardList_${currentBoardId.value}`);
|
// 목록으로 바로 이동시 필터 유지
|
||||||
if (getFilter) {
|
// const getFilter = localStorage.getItem(`boardList_${currentBoardId.value}`);
|
||||||
router.push({
|
// if (getFilter) {
|
||||||
path: '/board',
|
// router.push({
|
||||||
query: JSON.parse(getFilter),
|
// path: '/board',
|
||||||
});
|
// query: JSON.parse(getFilter),
|
||||||
} else {
|
// });
|
||||||
router.push('/board');
|
// } else {
|
||||||
}
|
// router.push('/board');
|
||||||
|
// }
|
||||||
|
|
||||||
//router.back();
|
router.back();
|
||||||
};
|
};
|
||||||
|
|
||||||
// 전 페이지로 이동
|
// 전 페이지로 이동
|
||||||
|
|||||||
@ -187,7 +187,8 @@
|
|||||||
showNotice: showNotices.value,
|
showNotice: showNotices.value,
|
||||||
};
|
};
|
||||||
|
|
||||||
localStorage.setItem(`boardList_${seq}`, JSON.stringify(query));
|
// 목록으로 바로 보낼때 필터 유지값
|
||||||
|
//localStorage.setItem(`boardList_${seq}`, JSON.stringify(query));
|
||||||
};
|
};
|
||||||
|
|
||||||
// 스토리지 초기화
|
// 스토리지 초기화
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user