补充上次提交.

This commit is contained in:
zhangwq
2018-12-13 14:31:31 +08:00
parent 46efc3320d
commit 5e8be6fb7e
3 changed files with 4 additions and 4 deletions

View File

@@ -143,7 +143,7 @@ public class RoleController extends BaseController {
public String saveOrUpdate(SysRole role, Model model, RedirectAttributes redirectAttributes) {
if (!"true".equals(checkName(role.getOldName(), role.getName()))){
addMessage(model,"error", "save_failed");
addMessage(redirectAttributes,"error", "save_failed");
return form(role, model);
}
roleService.saveOrUpdate(role);