fix(board): 상세→목록 이동 시 페이지·검색조건 유지
CI / build (push) Failing after 14m43s

- 목록 행 클릭 시 현재 쿼리(page/tag/keyword/searchType)를 상세로 전달
- 상세 목록 버튼·삭제 후 이동도 같은 쿼리로 복귀 → 1페이지 초기화 방지
  (브라우저 뒤로가기는 기존에도 URL 쿼리로 복원됨)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-28 12:36:48 +09:00
parent ca66c1d53e
commit 206364d2f1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ async function removePost() {
if (!(await dialog.confirm('이 게시글을 삭제하시겠습니까?', { title: '게시글 삭제', danger: true }))) return
try {
await boardApi.remove(postId)
router.replace(`/board/${category.value}`)
router.replace({ path: `/board/${category.value}`, query: route.query })
} catch (e) {
alert(e.response?.data?.message || '삭제에 실패했습니다.')
}
@@ -219,7 +219,7 @@ onMounted(load)
</div>
<div class="actions">
<IconBtn icon="list" title="목록" @click="router.push(`/board/${category}`)" />
<IconBtn icon="list" title="목록" @click="router.push({ path: `/board/${category}`, query: route.query })" />
<div class="right-actions">
<!-- 관리자 제한/해제 -->
<button v-if="isAdmin && !post.blocked" type="button" class="warn" @click="blockPost">열람 제한</button>