fix: 修复未设置 Sort 属性时异常
This commit is contained in:
parent
e353b24f5d
commit
d5479dee5d
|
@ -31,6 +31,7 @@ namespace Bootstrap.Admin.Query
|
|||
public QueryData<LoginUser> RetrieveData()
|
||||
{
|
||||
if (string.IsNullOrEmpty(Order)) Order = "desc";
|
||||
if (string.IsNullOrEmpty(Sort)) Sort = "LoginTime";
|
||||
var data = LoginHelper.RetrievePages(this, StartTime, EndTime, LoginIP);
|
||||
return new QueryData<LoginUser>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue