diff --git a/src/admin/Bootstrap.Admin/Pages/Components/ModalBase.cs b/src/admin/Bootstrap.Admin/Pages/Components/ModalBase.cs index b7f199a9..defa8de2 100644 --- a/src/admin/Bootstrap.Admin/Pages/Components/ModalBase.cs +++ b/src/admin/Bootstrap.Admin/Pages/Components/ModalBase.cs @@ -64,18 +64,6 @@ namespace Bootstrap.Admin.Pages.Components [Parameter] public bool ShowFooter { get; set; } = true; - /// - /// OnAfterRender 方法 - /// - /// - protected override void OnAfterRender(bool firstRender) - { - if (firstRender) - { - JSRuntime.InitModal(Id); - } - } - /// /// SetParametersAsync 方法 /// diff --git a/src/admin/Bootstrap.Admin/Pages/Components/ToastBase.cs b/src/admin/Bootstrap.Admin/Pages/Components/ToastBase.cs index 68ba052d..e137fb2e 100644 --- a/src/admin/Bootstrap.Admin/Pages/Components/ToastBase.cs +++ b/src/admin/Bootstrap.Admin/Pages/Components/ToastBase.cs @@ -63,10 +63,6 @@ namespace Bootstrap.Admin.Pages.Components /// protected override void OnAfterRender(bool firstRender) { - if (firstRender) - { - JSRuntime.InitToast(Id); - } if (_show) { _show = false; diff --git a/src/admin/Bootstrap.Admin/Pages/Extensions/JSRuntimeExtensions.cs b/src/admin/Bootstrap.Admin/Pages/Extensions/JSRuntimeExtensions.cs index a03475ef..e2230f6a 100644 --- a/src/admin/Bootstrap.Admin/Pages/Extensions/JSRuntimeExtensions.cs +++ b/src/admin/Bootstrap.Admin/Pages/Extensions/JSRuntimeExtensions.cs @@ -46,20 +46,6 @@ namespace Microsoft.JSInterop /// public static void InitDocument(this IJSRuntime? jSRuntime) => jSRuntime.InvokeVoidAsync("$.initDocument"); - /// - /// 修复 Modal 组件 - /// - /// - /// - public static void InitModal(this IJSRuntime? jSRuntime, string id) => jSRuntime.InvokeVoidAsync("$.initModal", id); - - /// - /// 修复 Modal 组件 - /// - /// - /// - public static void InitToast(this IJSRuntime? jSRuntime, string id) => jSRuntime.InvokeVoidAsync("$.initToast", id); - /// /// 弹出 Modal 组件 /// diff --git a/src/admin/Bootstrap.Admin/Views/Admin/Exceptions.cshtml b/src/admin/Bootstrap.Admin/Views/Admin/Exceptions.cshtml index cf8d8e70..c823924f 100644 --- a/src/admin/Bootstrap.Admin/Views/Admin/Exceptions.cshtml +++ b/src/admin/Bootstrap.Admin/Views/Admin/Exceptions.cshtml @@ -52,91 +52,89 @@
-@section modal { -