From 873db304d154efb4b7efa54505a558759f03d97f Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 1 Aug 2025 12:15:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=90=9C=E7=B4=A2=E7=82=B9=E5=87=BBtag?= =?UTF-8?q?=E3=80=81=E5=88=86=E7=B1=BB=E9=9C=80=E8=A6=81=E9=87=8D=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- open-isle-cli/src/components/SearchDropdown.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/open-isle-cli/src/components/SearchDropdown.vue b/open-isle-cli/src/components/SearchDropdown.vue index df88cfef7..1506dfc3c 100644 --- a/open-isle-cli/src/components/SearchDropdown.vue +++ b/open-isle-cli/src/components/SearchDropdown.vue @@ -92,9 +92,13 @@ export default { router.push(`/posts/${opt.postId}#comment-${opt.id}`) } } else if (opt.type === 'category') { - router.push({ path: '/', query: { category: opt.id } }) + router.push({ path: '/', query: { category: opt.id } }).then(() => { + window.location.reload() + }) } else if (opt.type === 'tag') { - router.push({ path: '/', query: { tags: opt.id } }) + router.push({ path: '/', query: { tags: opt.id } }).then(() => { + window.location.reload() + }) } selected.value = null keyword.value = ''