mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: update client to authenticate by session
This commit is contained in:
1 parent
59ced31094
commit
45231dda11
2 files changed
+30
-43
No files matched your search
@@ -4,8 +4,8 @@ import { logout } from '../utils/auth'
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
const handleLogout = () => {
|
||||
logout()
|
||||
const handleLogout = async () => {
|
||||
await logout()
|
||||
router.push({ name: 'auth' })
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user