Skip to content

Commit b10d2fb

Browse files
committed
更新复现demo
1 parent 7bb19dd commit b10d2fb

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/BootstrapBlazor/Components/Tab/TabItem.cs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,10 @@ public static TabItem Create(Dictionary<string, object?> parameters)
144144
{
145145
parameters[nameof(Url)] = url?.ToString()?.TrimStart('/') ?? "";
146146
}
147-
_ = Task.Run(async () =>
148-
{
149-
try
150-
{
151-
await item.SetParametersAsync(ParameterView.FromDictionary(parameters!));
152-
}
153-
catch (Exception ex)
154-
{
155-
156-
}
157-
});
147+
148+
149+
_ = item.SetParametersAsync(ParameterView.FromDictionary(parameters!));
150+
158151

159152
return item;
160153
}

0 commit comments

Comments
 (0)