From de04cf679b8a7b443bc437814183bbc96ff1cb73 Mon Sep 17 00:00:00 2001 From: nevermoregb Date: Fri, 28 Mar 2025 01:08:01 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=80=EC=83=89/=ED=8E=98=EC=9D=B4=EC=A7=95/?= =?UTF-8?q?=ED=95=84=ED=84=B0=EB=A7=81=20=ED=9B=84=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=EC=8B=9C=20=20=EA=B2=80=EC=83=89=EC=96=B4/=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=95=20=ED=92=80=EB=A6=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/BoardEdit.vue | 14 +++- src/views/board/BoardList.vue | 139 ++++++++++++++++++++++++++-------- 2 files changed, 118 insertions(+), 35 deletions(-) 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 @@