|
|
@ -32,7 +32,8 @@ function ChangeRolePop({ member_roles = [], record, courseId, onChangeRoleSucces
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const onConfirm = async () => {
|
|
|
|
const onConfirm = async () => {
|
|
|
|
if (checkBoxRoles && checkBoxRoles.length == 0) {
|
|
|
|
if (checkBoxRoles && checkBoxRoles.length == 0) {
|
|
|
|
showNotification('请至少选择一个角色')
|
|
|
|
showNotification('请至少选择一个角色');
|
|
|
|
|
|
|
|
setCheckBoxRoles(member_roles);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const url = `/courses/${courseId}/change_member_role.json`
|
|
|
|
const url = `/courses/${courseId}/change_member_role.json`
|
|
|
|