From 7d6b5b92c0c0d4a34e547026e8d393372a464795 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Mon, 6 Apr 2026 14:47:27 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=89=B4=EC=8A=A4=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=EB=84=A4=EC=9D=B4=EC=85=98=20=EB=A6=AC=EC=85=8B=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20+=20=EC=83=81=EC=84=B8=20=EB=A7=81?= =?UTF-8?q?=ED=81=AC=20=EC=83=88=20=ED=83=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - $effect에서 필터 변경 시에만 page 리셋 (페이지 클릭과 충돌 방지) - 상세 링크 → 새 탭으로 열기 Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/routes/news/+page.svelte | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/frontend/src/routes/news/+page.svelte b/frontend/src/routes/news/+page.svelte index 0ad1fb0..72a08d8 100644 --- a/frontend/src/routes/news/+page.svelte +++ b/frontend/src/routes/news/+page.svelte @@ -105,11 +105,15 @@ return `${days}일 전`; } + // 필터 변경 시에만 1페이지 리셋 + let prevFilter = ''; $effect(() => { - const _s = filterSource; - const _u = showUnreadOnly; - currentPage = 1; - loadArticles(); + const key = `${filterSource}|${showUnreadOnly}`; + if (key !== prevFilter) { + prevFilter = key; + currentPage = 1; + loadArticles(); + } }); @@ -224,7 +228,8 @@ 상세 + target="_blank" + >문서 상세 ↗