fix: 修复未设置 Sort 属性时异常

This commit is contained in:
Argo Windows 2019-11-01 23:20:28 +08:00
parent e353b24f5d
commit d5479dee5d
1 changed files with 1 additions and 0 deletions

View File

@ -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>
{