We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75ccd00 commit af1b5f1Copy full SHA for af1b5f1
src/router/guard/route.ts
@@ -38,8 +38,7 @@ export function createRouteGuard(router: Router) {
38
39
// if the route does not need login, then it is allowed to access directly
40
if (!needLogin) {
41
- handleRouteSwitch(to, from);
42
- return;
+ return handleRouteSwitch(to, from);
43
}
44
45
// the route need login but the user is not logged in, then switch to the login page
@@ -53,7 +52,7 @@ export function createRouteGuard(router: Router) {
53
52
54
55
// switch route normally
56
57
});
58
59
0 commit comments