Skip to content

Commit 5af44e1

Browse files
committed
refactor: 移除 static 判断逻辑
1 parent a746d89 commit 5af44e1

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/BootstrapBlazor/Components/Layout/Layout.razor

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
@inherits BootstrapModuleComponentBase
33
@attribute [BootstrapModuleAutoLoader(JSObjectReference = true)]
44

5-
@if (!_isInteractive)
6-
{
7-
@* <HeadContent>
8-
<script type="module">
9-
import { layout_init } from './_content/BootstrapBlazor/Components/Layout/Layout.razor.js';
10-
layout_init();
11-
</script>
12-
</HeadContent> *@
13-
}
14-
155
<CascadingValue Value="this" IsFixed="true">
166
@if (_init)
177
{

src/BootstrapBlazor/Components/Layout/Layout.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ public partial class Layout : IHandlerException
321321

322322
private bool _init { get; set; }
323323

324-
private bool _isInteractive = true;
324+
//private bool _isInteractive = true;
325325

326326
/// <summary>
327327
/// <inheritdoc/>

0 commit comments

Comments
 (0)