mirror of
https://github.com/yangzongzhuan/RuoYi.git
synced 2025-10-16 10:38:27 +00:00
AjaxResult错误消息结果类型的判断
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user