A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(user-center/auth): Add route guards to allow access only to non-logged-in users
haitaoo2498ab139a12
diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.tsindex 1c2e9079..e948fcde 100644--- a/ui/src/router/routes.ts+++ b/ui/src/router/routes.ts@@ -365,6 +365,10 @@ const routes: RouteNode[] = [{path: '/user-center/auth',page: 'pages/UserCenter/Auth',+ guard: () => {+ const notLogged = guard.notLogged();+ return notLogged;+ },},{path: '/user-center/auth-failed',