opt admin man

This commit is contained in:
sijinhui
2024-04-29 13:21:06 +08:00
parent 81eb6a25bb
commit de704b2d40
4 changed files with 27 additions and 5 deletions

View File

@@ -65,6 +65,7 @@ async function handle(
createdAt: item.createdAt,
updatedAt: item.updatedAt,
allowToLogin: item.allowToLogin,
isAdmin: item.isAdmin,
};
}),
});

View File

@@ -188,6 +188,18 @@ function UsersTable({ users, setUsers, loading }: UserInterface) {
dataIndex: "updatedAt",
render: (value) => getCurrentTime(new Date(value)),
},
{
title: "isAdmin",
dataIndex: "isAdmin",
width: 80,
render: (value) => {
return (
<div>
<Checkbox defaultChecked={value} disabled></Checkbox>
</div>
);
},
},
{
title: "allowToLogin",
dataIndex: "allowToLogin",