feat: add goToDetail function to navigate to character detail page.
This commit is contained in:
@@ -20,6 +20,10 @@ onMounted(async () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const goToDetail = (id) => {
|
||||||
|
router.push({ name: 'character-detail', params: { id } })
|
||||||
|
}
|
||||||
|
|
||||||
const handleLogout = () => {
|
const handleLogout = () => {
|
||||||
localStorage.removeItem('auth_code')
|
localStorage.removeItem('auth_code')
|
||||||
router.push('/login')
|
router.push('/login')
|
||||||
|
|||||||
Reference in New Issue
Block a user