mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 11:19:45 +08:00
系统管理有相关api请求逻辑优化
This commit is contained in:
@@ -24,8 +24,10 @@ export const SystemAdminrolesCreate: React.FC<PropInterface> = ({
|
||||
const [actions, setActions] = useState<any>([]);
|
||||
|
||||
useEffect(() => {
|
||||
getParams();
|
||||
}, []);
|
||||
if (open) {
|
||||
getParams();
|
||||
}
|
||||
}, [open]);
|
||||
|
||||
useEffect(() => {
|
||||
form.setFieldsValue({
|
||||
|
||||
@@ -26,8 +26,10 @@ export const SystemAdminrolesUpdate: React.FC<PropInterface> = ({
|
||||
const [actions, setActions] = useState<any>([]);
|
||||
|
||||
useEffect(() => {
|
||||
getParams();
|
||||
}, []);
|
||||
if (open) {
|
||||
getParams();
|
||||
}
|
||||
}, [open]);
|
||||
|
||||
useEffect(() => {
|
||||
if (id === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user