fix: 网站设置缓存数据禁止出现分页控件

This commit is contained in:
Argo Zhang 2020-02-11 00:11:16 +08:00
parent 9f67ac65b8
commit 8262b0c83e
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 3 additions and 1 deletions

View File

@ -74,10 +74,12 @@ namespace Bootstrap.Admin.Pages.Views.Admin.Components
protected QueryData<ICacheItem> QueryData(QueryPageOptions options) protected QueryData<ICacheItem> QueryData(QueryPageOptions options)
{ {
var data = CacheManager.ToList(); var data = CacheManager.ToList();
var pageItems = data.Count();
return new QueryData<ICacheItem>() return new QueryData<ICacheItem>()
{ {
Items = data, Items = data,
TotalCount = data.Count() PageItems = pageItems,
TotalCount = pageItems
}; };
} }