管理人员页面重构

This commit is contained in:
禺狨 2023-04-04 11:23:48 +08:00
parent 10e4d0dae1
commit 7f58a02f6f

View File

@ -235,7 +235,6 @@ const SystemAdministratorPage = () => {
</Button>
<Button
className="mr-16"
type="primary"
onClick={() => {
setPage(1);
@ -244,15 +243,19 @@ const SystemAdministratorPage = () => {
>
</Button>
<PerButton
text="角色权限"
icon={null}
class=""
type="default"
p="admin-role"
onClick={() => setUpdateRoleVisible(true)}
disabled={null}
/>
{role_ids.length > 0 && (
<PerButton
text="角色权限"
icon={null}
class="ml-16"
type="default"
p="admin-role"
onClick={() => {
setUpdateRoleVisible(true);
}}
disabled={null}
/>
)}
</div>
</div>
</div>