[release-2.2] perf: hide anonymousUser in user management list (#846)

This is an automated cherry-pick of #844

/assign ruibaby

```release-note
在 Console 端的用户管理中隐藏 `Anonymous User` 用户。
```
pull/855/head
Halo Dev Bot 2 years ago committed by GitHub
parent d40b620b2b
commit d8ff085c35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,6 +58,8 @@ const userStore = useUserStore();
let fuse: Fuse<User> | undefined = undefined;
const ANONYMOUSUSER_NAME = "anonymousUser";
const handleFetchUsers = async (options?: { mute?: boolean }) => {
try {
clearInterval(refreshInterval.value);
@ -69,6 +71,7 @@ const handleFetchUsers = async (options?: { mute?: boolean }) => {
const { data } = await apiClient.extension.user.listv1alpha1User({
page: users.value.page,
size: users.value.size,
fieldSelector: [`name!=${ANONYMOUSUSER_NAME}`],
});
users.value = data;

Loading…
Cancel
Save