This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch suspended
in repository https://gitbox.apache.org/repos/asf/answer.git
The following commit(s) were added to refs/heads/suspended by this push:
new 64e2ffe4 fix: clear suspended user information
64e2ffe4 is described below
commit 64e2ffe48fa6e20ff3336f1098b392e85bb2f73f
Author: shuai <[email protected]>
AuthorDate: Thu Apr 17 10:49:34 2025 +0800
fix: clear suspended user information
---
ui/src/utils/request.ts | 1 +
1 file changed, 1 insertion(+)
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',
});