diff --git a/src/views/board/BoardEdit.vue b/src/views/board/BoardEdit.vue index 9cd81a0..1e469b6 100644 --- a/src/views/board/BoardEdit.vue +++ b/src/views/board/BoardEdit.vue @@ -166,8 +166,18 @@ // 목록 페이지로 이동 const goList = () => { accessStore.$reset(); - //router.push('/board'); - router.back(); + + const getFilter = localStorage.getItem(`boardList_${currentBoardId.value}`); + if (getFilter) { + router.push({ + path: '/board', + query: JSON.parse(getFilter), + }); + } else { + router.push('/board'); + } + + //router.back(); }; // 전 페이지로 이동 diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index a8c9fb7..5181df3 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -8,7 +8,7 @@
- @@ -17,14 +17,20 @@ -
- +
@@ -65,15 +71,13 @@ [ {{ notice.commentCount }} ] - - + + - - N - + N
{{ notice.author }} @@ -89,7 +93,7 @@ @click="goDetail(post.realId)" > {{ post.id }} - +
{{ post.title }} [ {{ post.commentCount }} ] @@ -101,7 +105,7 @@ N
- {{ post.nickname ? post.nickname : post.author }} + {{ post.nickname ? post.nickname : post.author }} {{ post.date }} {{ post.views }} @@ -126,10 +130,11 @@