Merge branch 'main' into example

This commit is contained in:
Soybean
2024-12-16 16:44:43 +08:00
24 changed files with 2128 additions and 2010 deletions

View File

@@ -138,11 +138,11 @@ async function initRoute(to: RouteLocationNormalized): Promise<RouteLocationRaw
}
}
routeStore.onRouteSwitchWhenLoggedIn();
// the auth route is initialized
// it is not the "not-found" route, then it is allowed to access
if (!isNotFoundRoute) {
routeStore.onRouteSwitchWhenLoggedIn();
return null;
}