mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-05-30 06:27:38 +08:00
feat: 修改为服务端渲染、解决跳转问题
This commit is contained in:
@@ -76,7 +76,9 @@ export default {
|
||||
const router = useRouter()
|
||||
|
||||
const goToHome = () => {
|
||||
router.push('/')
|
||||
router.push('/').then(() => {
|
||||
window.location.reload()
|
||||
})
|
||||
}
|
||||
const search = () => {
|
||||
showSearch.value = true
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user