mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-05-11 13:17:29 +08:00
feat: update jump logic
This commit is contained in:
@@ -75,6 +75,8 @@ export default {
|
|||||||
router.push(`/posts/${opt.id}`)
|
router.push(`/posts/${opt.id}`)
|
||||||
} else if (opt.type === 'user') {
|
} else if (opt.type === 'user') {
|
||||||
router.push(`/users/${opt.id}`)
|
router.push(`/users/${opt.id}`)
|
||||||
|
} else if (opt.type === 'comment') {
|
||||||
|
router.push(`/posts/${opt.postId}#comments-${opt.id}`)
|
||||||
}
|
}
|
||||||
selected.value = null
|
selected.value = null
|
||||||
keyword.value = ''
|
keyword.value = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user