Skip to content

Commit feabe50

Browse files
committed
refactor: 更新逻辑
1 parent fd58e4a commit feabe50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/BootstrapBlazor/Components/Tab/Tab.razor.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,10 @@ private void AddTabItem(string url)
607607
{
608608
SetTabItemParameters(menu.Text, menu.Icon, true, true);
609609
}
610-
parameters.Add(nameof(TabItem.Text), url.Split("/").FirstOrDefault());
610+
else
611+
{
612+
parameters.Add(nameof(TabItem.Text), url.Split("/").FirstOrDefault());
613+
}
611614
}
612615
parameters.Add(nameof(TabItem.Url), url);
613616

0 commit comments

Comments
 (0)