管理人员角色相关优化

This commit is contained in:
禺狨 2023-04-04 14:14:28 +08:00
parent 1a73f08a74
commit b2d6b4af75

View File

@ -200,6 +200,7 @@ const SystemAdministratorPage = () => {
</div> </div>
<div className="float-left j-b-flex mb-24"> <div className="float-left j-b-flex mb-24">
<div className="d-flex"> <div className="d-flex">
{role_ids.length === 0 && (
<PerButton <PerButton
text="新建角色" text="新建角色"
icon={<PlusOutlined />} icon={<PlusOutlined />}
@ -209,6 +210,7 @@ const SystemAdministratorPage = () => {
onClick={() => setCreateRoleVisible(true)} onClick={() => setCreateRoleVisible(true)}
disabled={null} disabled={null}
/> />
)}
<PerButton <PerButton
type="default" type="default"
text="添加管理员" text="添加管理员"