feat: add goToDetail function to navigate to character detail page.

This commit is contained in:
xds
2026-02-04 15:35:08 +03:00
parent b18d6a3fcb
commit 963dc26d1d

View File

@@ -20,6 +20,10 @@ onMounted(async () => {
}
})
const goToDetail = (id) => {
router.push({ name: 'character-detail', params: { id } })
}
const handleLogout = () => {
localStorage.removeItem('auth_code')
router.push('/login')