【优化】优化文章分类后端及前端展示排序问题。

This commit is contained in:
jianweie code
2023-08-17 01:22:36 +08:00
parent e3115be3f6
commit 27b892793e
2 changed files with 2 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ namespace CoreCms.Net.Web.WebApi.Controllers
{
var jm = new WebApiCallBack();
var articleType = await _articleTypeServices.QueryAsync(true, true);
var articleType = await _articleTypeServices.QueryListByClauseAsync(p => p.id > 0, p => p.sort, OrderByType.Asc, true, true);
if (articleType.Any())
{
var where = PredicateBuilder.True<CoreCmsArticle>();