fix: keep browser history for home category and tag filters

This commit is contained in:
Tim
2026-02-06 17:35:59 +08:00
parent a7fbd1eb75
commit ebc79f36e7
5 changed files with 7 additions and 7 deletions

View File

@@ -357,13 +357,13 @@ const isImageIcon = (icon) => {
const gotoCategory = (c) => {
const value = encodeURIComponent(c.id ?? c.name)
navigateTo({ path: '/', query: { category: value } }, { replace: true })
navigateTo({ path: '/', query: { category: value } })
handleItemClick()
}
const gotoTag = (t) => {
const value = encodeURIComponent(t.id ?? t.name)
navigateTo({ path: '/', query: { tags: value } }, { replace: true })
navigateTo({ path: '/', query: { tags: value } })
handleItemClick()
}
</script>