feat: 处理nuxt部分样式问题 & 跳转问题

This commit is contained in:
Tim
2025-08-08 11:24:52 +08:00
parent 2b1958a603
commit 44daa255c8
8 changed files with 107 additions and 108 deletions

View File

@@ -92,13 +92,9 @@ export default {
router.push(`/posts/${opt.postId}#comment-${opt.id}`)
}
} else if (opt.type === 'category') {
router.push({ path: '/', query: { category: opt.id } }).then(() => {
window.location.reload()
})
router.push({ path: '/', query: { category: opt.id } })
} else if (opt.type === 'tag') {
router.push({ path: '/', query: { tags: opt.id } }).then(() => {
window.location.reload()
})
router.push({ path: '/', query: { tags: opt.id } })
}
selected.value = null
keyword.value = ''