Skip to content

Commit e1f4745

Browse files
committed
doc: 使用统一资源路径
1 parent 0aab8dc commit e1f4745

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@page "/icon"
22
@inject IStringLocalizer<BootstrapBlazorIcons> Localizer
3+
@inject IOptions<WebsiteOptions> WebsiteOption
34

45
<h3>@Localizer["IconsTitle"]</h3>
56

@@ -24,6 +25,6 @@
2425

2526
<DemoBlock Title="@Localizer["ImageTitle"]" Introduction="@Localizer["ImageIntro"]" Name="Image">
2627
<BootstrapBlazorIcon>
27-
<img src="./favicon.png" alt="img" />
28+
<img src="@WebsiteOption.Value.GetAssetUrl("favicon.png")" alt="img" />
2829
</BootstrapBlazorIcon>
2930
</DemoBlock>

0 commit comments

Comments
 (0)