Add stuff
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export default defineNuxtRouteMiddleware(() => {
|
||||
const { loggedIn } = useUserSession();
|
||||
|
||||
if (loggedIn.value) {
|
||||
const localePath = useLocalePath();
|
||||
return navigateTo(localePath('/'));
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user