diff --git a/src/pages/system/administrator/index.tsx b/src/pages/system/administrator/index.tsx index 9f05ccd..d89b012 100644 --- a/src/pages/system/administrator/index.tsx +++ b/src/pages/system/administrator/index.tsx @@ -200,15 +200,17 @@ const SystemAdministratorPage = () => {
- } - class="mr-16" - type="primary" - p="admin-role" - onClick={() => setCreateRoleVisible(true)} - disabled={null} - /> + {role_ids.length === 0 && ( + } + class="mr-16" + type="primary" + p="admin-role" + onClick={() => setCreateRoleVisible(true)} + disabled={null} + /> + )}