게시글 수정 시 상세 페이지로 이동 하도록 변경
This commit is contained in:
parent
3b50c84118
commit
e447968ecf
@ -163,21 +163,22 @@
|
||||
name: `${file.originalName}.${file.extension}`,
|
||||
}));
|
||||
|
||||
// 목록 페이지로 이동
|
||||
// 상세 페이지로 이동
|
||||
const goList = () => {
|
||||
accessStore.$reset();
|
||||
|
||||
const getFilter = localStorage.getItem(`boardList_${currentBoardId.value}`);
|
||||
if (getFilter) {
|
||||
router.push({
|
||||
path: '/board',
|
||||
query: JSON.parse(getFilter),
|
||||
});
|
||||
} else {
|
||||
router.push('/board');
|
||||
}
|
||||
// 목록으로 바로 이동시 필터 유지
|
||||
// const getFilter = localStorage.getItem(`boardList_${currentBoardId.value}`);
|
||||
// if (getFilter) {
|
||||
// router.push({
|
||||
// path: '/board',
|
||||
// query: JSON.parse(getFilter),
|
||||
// });
|
||||
// } else {
|
||||
// router.push('/board');
|
||||
// }
|
||||
|
||||
//router.back();
|
||||
router.back();
|
||||
};
|
||||
|
||||
// 전 페이지로 이동
|
||||
|
||||
@ -187,7 +187,8 @@
|
||||
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