mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-21 07:21:44 +01:00
Use cookie to redirect to last route after oauth
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
const appConfig = useAppConfig()
|
||||
const getColor = computed(() => appConfig.ui.primary)
|
||||
|
||||
const router = useRouter()
|
||||
router.afterEach((route) => {
|
||||
useCookie('last-route', { path: '/', default: () => '/' }).value = route.fullPath
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user