Skip to content

Commit 7fab213

Browse files
committed
refactor: 重构资源路径
1 parent 9668f37 commit 7fab213

File tree

1 file changed

+2
-1
lines changed
  • src/BootstrapBlazor.Shared/Components/Components

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
@inherits WebSiteModuleComponentBase
22
@attribute [JSModuleAutoLoader("Components/Wwads.razor.js", AutoInvokeDispose = false)]
3+
@inject IOptionsMonitor<WebsiteOptions> WebsiteOption
34

45
<HeadContent>
5-
<link rel="stylesheet" href="@Assets["./_content/BootstrapBlazor.Shared/css/wwads.css"]" />
6+
<link rel="stylesheet" href="@Assets[$"{WebsiteOption.CurrentValue.AssetRootPath}css/wwads.css"]" />
67
</HeadContent>
78

89
<div @attributes="AdditionalAttributes" id="@Id" class="@ClassString"></div>

0 commit comments

Comments
 (0)