学员添加、编辑优化以及删除弹窗文案优化

This commit is contained in:
禺狨 2023-03-22 18:48:10 +08:00
parent 65d572aee0
commit c032727588
6 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
return;
}
getDetail();
}, [id]);
}, [id, open]);
const getDetail = () => {
course.course(id).then((res: any) => {

View File

@ -51,7 +51,7 @@ export const CourseUpdate: React.FC<PropInterface> = ({
return;
}
getCategory();
}, [id]);
}, [id, open]);
const getCategory = () => {
course.createCourse().then((res: any) => {

View File

@ -29,7 +29,7 @@ export const MemberUpdate: React.FC<PropInterface> = ({
useEffect(() => {
getParams();
}, [id]);
}, [id, open]);
useEffect(() => {
form.setFieldsValue({

View File

@ -178,7 +178,7 @@ export const MemberPage: React.FC = () => {
confirm({
title: "操作确认",
icon: <ExclamationCircleFilled />,
content: "确认删除此视频",
content: "确认删除此学员",
centered: true,
okText: "确认",
cancelText: "取消",

View File

@ -27,7 +27,7 @@ export const SystemAdministratorUpdate: React.FC<PropInterface> = ({
return;
}
getDetail();
}, [id]);
}, [id, open]);
const getParams = () => {
adminUser.createAdminUser().then((res: any) => {

View File

@ -28,7 +28,7 @@ export const SystemAdminrolesUpdate: React.FC<PropInterface> = ({
return;
}
getDetail();
}, [id]);
}, [id, open]);
const getParams = () => {
adminRole.createAdminRole().then((res: any) => {