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