Skip to content

Commit 6dfcef5

Browse files
authored
doc(ErrorLogger): update sample code (#4568)
* refactor: 移除 Title 组件 * refactor: 增加 ErrorLogger 包裹组件
1 parent f384e6c commit 6dfcef5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/BootstrapBlazor.Server/Components/Samples/GlobalException.razor

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@
5858
}</Pre>
5959

6060
<DemoBlock Title="@Localizer["Block1Title"]" Introduction="@Localizer["Block1Intro"]" Name="Normal">
61-
<p>@((MarkupString)Localizer["ExceptionTestIntroduce"].Value)</p>
62-
<Button Icon="fa-solid fa-font-awesome" Text="@Localizer["ButtonText"]" OnClick="OnClick" />
61+
<section ignore>@((MarkupString)Localizer["ExceptionTestIntroduce"].Value)</section>
62+
<ErrorLogger>
63+
<Button Icon="fa-solid fa-font-awesome" Text="@Localizer["ButtonText"]" OnClick="OnClick" />
64+
</ErrorLogger>
6365
</DemoBlock>
6466

6567
<DemoBlock Title="@Localizer["Block2Title"]" Introduction="@Localizer["Block2Intro"]" Name="Swal">

src/BootstrapBlazor/Components/BaseComponents/BootstrapBlazorRoot.razor

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
@RenderBody()
55

6-
<Title></Title>
7-
86
<Message @ref="MessageContainer"></Message>
97
<ToastContainer @ref="ToastContainer"></ToastContainer>
108
<DrawerContainer></DrawerContainer>

0 commit comments

Comments
 (0)