mirror of
https://github.com/PlayEdu/backend
synced 2025-06-21 23:02:47 +08:00
学员添加、编辑优化以及删除弹窗文案优化
This commit is contained in:
parent
65d572aee0
commit
c032727588
@ -39,7 +39,7 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
|
||||
return;
|
||||
}
|
||||
getDetail();
|
||||
}, [id]);
|
||||
}, [id, open]);
|
||||
|
||||
const getDetail = () => {
|
||||
course.course(id).then((res: any) => {
|
||||
|
@ -51,7 +51,7 @@ export const CourseUpdate: React.FC<PropInterface> = ({
|
||||
return;
|
||||
}
|
||||
getCategory();
|
||||
}, [id]);
|
||||
}, [id, open]);
|
||||
|
||||
const getCategory = () => {
|
||||
course.createCourse().then((res: any) => {
|
||||
|
@ -29,7 +29,7 @@ export const MemberUpdate: React.FC<PropInterface> = ({
|
||||
|
||||
useEffect(() => {
|
||||
getParams();
|
||||
}, [id]);
|
||||
}, [id, open]);
|
||||
|
||||
useEffect(() => {
|
||||
form.setFieldsValue({
|
||||
|
@ -178,7 +178,7 @@ export const MemberPage: React.FC = () => {
|
||||
confirm({
|
||||
title: "操作确认",
|
||||
icon: <ExclamationCircleFilled />,
|
||||
content: "确认删除此视频?",
|
||||
content: "确认删除此学员?",
|
||||
centered: true,
|
||||
okText: "确认",
|
||||
cancelText: "取消",
|
||||
|
@ -27,7 +27,7 @@ export const SystemAdministratorUpdate: React.FC<PropInterface> = ({
|
||||
return;
|
||||
}
|
||||
getDetail();
|
||||
}, [id]);
|
||||
}, [id, open]);
|
||||
|
||||
const getParams = () => {
|
||||
adminUser.createAdminUser().then((res: any) => {
|
||||
|
@ -28,7 +28,7 @@ export const SystemAdminrolesUpdate: React.FC<PropInterface> = ({
|
||||
return;
|
||||
}
|
||||
getDetail();
|
||||
}, [id]);
|
||||
}, [id, open]);
|
||||
|
||||
const getParams = () => {
|
||||
adminRole.createAdminRole().then((res: any) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user