feat: update jump logic

This commit is contained in:
tim
2025-07-08 23:09:14 +08:00
parent 558ef1d6f6
commit fe3ed1cdf7

View File

@@ -75,6 +75,8 @@ export default {
router.push(`/posts/${opt.id}`)
} else if (opt.type === 'user') {
router.push(`/users/${opt.id}`)
} else if (opt.type === 'comment') {
router.push(`/posts/${opt.postId}#comments-${opt.id}`)
}
selected.value = null
keyword.value = ''