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

pull/407/head
RuoYi 2022-09-02 10:19:22 +08:00
parent 5a3714e9bc
commit daa8286804
1 changed files with 1 additions and 1 deletions

View File

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