fix: update client to authenticate by session

This commit is contained in:
wancat committed 2023-09-18 22:51:20 +08:00
1 parent 59ced31094
commit 45231dda11
2 files changed
+30 -43

No files matched your search

+2 -2
View File
@@ -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>