diff --git a/src/admin/Bootstrap.Admin/Components/TableBase.cs b/src/admin/Bootstrap.Admin/Components/TableBase.cs
index 87516a25..7f8313fe 100644
--- a/src/admin/Bootstrap.Admin/Components/TableBase.cs
+++ b/src/admin/Bootstrap.Admin/Components/TableBase.cs
@@ -218,7 +218,7 @@ namespace Bootstrap.Admin.Components
if (FixedHeader)
{
// 调用客户端脚本 resetWith
- await JSRuntime.InitTableAsync(RetrieveId());
+ await JSRuntime.InitTableAsync(RetrieveId(), firstRender);
}
}
diff --git a/src/admin/Bootstrap.Admin/Extensions/JSRuntimeExtensions.cs b/src/admin/Bootstrap.Admin/Extensions/JSRuntimeExtensions.cs
index 1caf030a..0da63861 100644
--- a/src/admin/Bootstrap.Admin/Extensions/JSRuntimeExtensions.cs
+++ b/src/admin/Bootstrap.Admin/Extensions/JSRuntimeExtensions.cs
@@ -101,6 +101,9 @@ namespace Bootstrap.Admin.Extensions
///
/// 初始化 Table 组件
///
- public static ValueTask InitTableAsync(this IJSRuntime? jSRuntime, string id) => jSRuntime.InvokeVoidAsync("$.initTable", id);
+ ///
+ ///
+ ///
+ public static ValueTask InitTableAsync(this IJSRuntime? jSRuntime, string id, bool firstRender) => jSRuntime.InvokeVoidAsync("$.initTable", id, firstRender);
}
}