Skip to content

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: clear suspended user information

shuai64e2ffe48fa6
diff --git a/ui/src/utils/request.ts b/ui/src/utils/request.ts
index f4dd97af..6f1f42ac 100644
--- a/ui/src/utils/request.ts
+++ b/ui/src/utils/request.ts
@@ -172,6 +172,7 @@ class Request {
}
if (data?.type === 'suspended') {
+ loggedUserInfoStore.getState().clear();
floppyNavigation.navigate(RouteAlias.suspended, {
handler: 'replace',
});