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 = ''