Skip to content

Commit

Permalink
修复关于我们页面导航栏失效的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleFish-233 committed Aug 22, 2023
1 parent 4864d7c commit 7e14444
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Expand Up @@ -253,7 +253,7 @@ public async Task<ActionResult<List<DocumentViewModel>>> GetDocumentsAsync()

//公告
articles = await _articleRepository.GetAll().AsNoTracking()
.Where(s => s.Type == ArticleType.Notice && s.Name.Contains("更新") == false && s.Id != 150 && s.Id != 225 && s.Id != 767 && s.Id != 766)
.Where(s => s.Type == ArticleType.Notice && s.Name.Contains("更新") == false && s.Name.Contains("th") == false && s.Id != 150 && s.Id != 225 && s.Id != 767 && s.Id != 766)
.Select(s => new DocumentViewModel { Id = s.Id, Title = s.DisplayName })
.ToListAsync();

Expand Down
Expand Up @@ -10,6 +10,6 @@ public class DocumentViewModel

public long Id { get; set; }

public List<DocumentViewModel> Children { get; set; } = new List<DocumentViewModel>();
public List<DocumentViewModel> Children { get; set; }
}
}
Expand Up @@ -49,9 +49,12 @@
public void AddItem(DocumentViewModel model)
{
MainItems.Add(model);
foreach (var item in model.Children)
if(model.Children!=null)
{
AddItem(item);
foreach (var item in model.Children)
{
AddItem(item);
}
}


Expand Down

0 comments on commit 7e14444

Please sign in to comment.