fix: 网站设置缓存数据禁止出现分页控件
This commit is contained in:
parent
9f67ac65b8
commit
8262b0c83e
|
@ -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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue