Fix #5948: re-render the module message when it's been changed.

This commit is contained in:
Ben
2026-01-09 08:44:13 +08:00
parent b0d624034a
commit 5c70f4f6a7
2 changed files with 17 additions and 3 deletions

View File

@@ -21,7 +21,7 @@
@if (_style == MessageStyle.Toast)
{
<div class="app-modulemessage-toast bottom-0 end-0" @key="DateTime.UtcNow">
<div class="app-modulemessage-toast bottom-0 end-0">
<div class="@_classname alert-dismissible fade show mb-3 rounded-end-0" role="alert">
@((MarkupString)Message)
@if (Type == MessageType.Error && PageState != null && UserSecurity.IsAuthorized(PageState.User, RoleNames.Host))