feat: 修改为服务端渲染、解决跳转问题

This commit is contained in:
Tim
2025-08-08 13:22:42 +08:00
parent 6554e66a4e
commit 65ae660486
4 changed files with 36 additions and 28 deletions

View File

@@ -245,13 +245,17 @@ export default {
gotoCategory(c) {
const value = encodeURIComponent(c.id ?? c.name)
this.$router
.push({ path: '/', query: { category: value } })
.push({ path: '/', query: { category: value } }).then(() => {
window.location.reload()
})
this.handleItemClick()
},
gotoTag(t) {
const value = encodeURIComponent(t.id ?? t.name)
this.$router
.push({ path: '/', query: { tags: value } })
.push({ path: '/', query: { tags: value } }).then(() => {
window.location.reload()
})
this.handleItemClick()
}
}