fix: 更正无自定义按钮时移动端出现 gear 组件

This commit is contained in:
Argo Zhang 2020-02-02 11:28:51 +08:00
parent e1c6cf7a1e
commit f0fff56a6b
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Rendering;
using System.Linq;
namespace Bootstrap.Admin.Pages.Components
{
@ -20,7 +21,7 @@ namespace Bootstrap.Admin.Pages.Components
protected override void BuildRenderTree(RenderTreeBuilder builder)
{
// 渲染正常按钮
if (Toolbar != null)
if (Toolbar != null && Toolbar.Buttons.Any())
{
// 渲染 Toolbar 按钮
//<div class="toolbar btn-group">