mirror of
https://github.com/PlayEdu/backend
synced 2025-12-30 05:19:53 +08:00
管理人员角色优化
This commit is contained in:
@@ -5,12 +5,14 @@ import { adminUser } from "../../../../api/index";
|
||||
|
||||
interface PropInterface {
|
||||
roleId: number;
|
||||
refresh: boolean;
|
||||
open: boolean;
|
||||
onCancel: () => void;
|
||||
}
|
||||
|
||||
export const SystemAdministratorCreate: React.FC<PropInterface> = ({
|
||||
roleId,
|
||||
refresh,
|
||||
open,
|
||||
onCancel,
|
||||
}) => {
|
||||
@@ -20,7 +22,7 @@ export const SystemAdministratorCreate: React.FC<PropInterface> = ({
|
||||
|
||||
useEffect(() => {
|
||||
getParams();
|
||||
}, []);
|
||||
}, [refresh]);
|
||||
|
||||
useEffect(() => {
|
||||
let roleIds = [];
|
||||
|
||||
Reference in New Issue
Block a user