mirror of
https://github.com/PlayEdu/backend
synced 2025-12-29 23:59:35 +08:00
登录样式优化
This commit is contained in:
@@ -29,8 +29,10 @@ export const MemberUpdatePage: React.FC = () => {
|
||||
const getParams = () => {
|
||||
department.departmentList().then((res: any) => {
|
||||
const departments = res.data.departments;
|
||||
const new_arr: Option[] = checkArr(departments, 0);
|
||||
setDepartments(new_arr);
|
||||
if (JSON.stringify(departments) !== "{}") {
|
||||
const new_arr: Option[] = checkArr(departments, 0);
|
||||
setDepartments(new_arr);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user