mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-07 04:20:47 +08:00
fix: keep browser history for home category and tag filters
This commit is contained in:
@@ -170,9 +170,9 @@ watch(selected, (val) => {
|
||||
navigateTo(`/posts/${opt.postId}#comment-${opt.id}`, { replace: true })
|
||||
}
|
||||
} else if (opt.type === 'category') {
|
||||
navigateTo({ path: '/', query: { category: opt.id } }, { replace: true })
|
||||
navigateTo({ path: '/', query: { category: opt.id } })
|
||||
} else if (opt.type === 'tag') {
|
||||
navigateTo({ path: '/', query: { tags: opt.id } }, { replace: true })
|
||||
navigateTo({ path: '/', query: { tags: opt.id } })
|
||||
}
|
||||
selected.value = null
|
||||
keyword.value = ''
|
||||
|
||||
Reference in New Issue
Block a user