AjaxResult错误消息结果类型的判断

springboot2
RuoYi 4 years ago
parent 5a3714e9bc
commit daa8286804

@ -198,7 +198,7 @@ public class AjaxResult extends HashMap<String, Object>
*/ */
public boolean isError() public boolean isError()
{ {
return Objects.equals(Type.SUCCESS, this.get(CODE_TAG)); return Objects.equals(Type.ERROR.value, this.get(CODE_TAG));
} }
/** /**

Loading…
Cancel
Save