Skip to content

Commit e112fa7

Browse files
committed
fix(auth/middleware): Remove infinite redirect
1 parent 2289661 commit e112fa7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

middleware/auth.ts

-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ export default defineNuxtRouteMiddleware((to) => {
88
if (to.fullPath === "/login" && user.value.id) return navigateTo("/");
99

1010
if (!user.value.id) return navigateTo("/login");
11-
else return navigateTo(to.fullPath);
1211
});

0 commit comments

Comments
 (0)