修复日志列表取消字段排序时的报错问题

pull/78/head
RuoYi 3 years ago
parent dbf42739ca
commit 6146d63f2c

@ -67,15 +67,18 @@ public class PageDomain
public void setIsAsc(String isAsc)
{
// 兼容前端排序类型
if ("ascending".equals(isAsc))
if (StringUtils.isNotEmpty(isAsc))
{
isAsc = "asc";
// 兼容前端排序类型
if ("ascending".equals(isAsc))
{
isAsc = "asc";
}
else if ("descending".equals(isAsc))
{
isAsc = "desc";
}
this.isAsc = isAsc;
}
else if ("descending".equals(isAsc))
{
isAsc = "desc";
}
this.isAsc = isAsc;
}
}

Loading…
Cancel
Save