mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-07-22 04:26:07 +00:00
feat: 搜索点击tag、分类需要重入
This commit is contained in:
@@ -92,9 +92,13 @@ export default {
|
|||||||
router.push(`/posts/${opt.postId}#comment-${opt.id}`)
|
router.push(`/posts/${opt.postId}#comment-${opt.id}`)
|
||||||
}
|
}
|
||||||
} else if (opt.type === 'category') {
|
} 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') {
|
} 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
|
selected.value = null
|
||||||
keyword.value = ''
|
keyword.value = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user