diff --git a/src/blazor/admin/BootstrapAdmin.Web/Pages/Account/Login.razor b/src/blazor/admin/BootstrapAdmin.Web/Pages/Account/Login.razor index ffcbca50..9abdf5df 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Pages/Account/Login.razor +++ b/src/blazor/admin/BootstrapAdmin.Web/Pages/Account/Login.razor @@ -14,11 +14,11 @@ { - + - + }
diff --git a/src/blazor/admin/BootstrapAdmin.Web/Pages/Account/Login.razor.cs b/src/blazor/admin/BootstrapAdmin.Web/Pages/Account/Login.razor.cs index 92d690a8..9df1ed32 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Pages/Account/Login.razor.cs +++ b/src/blazor/admin/BootstrapAdmin.Web/Pages/Account/Login.razor.cs @@ -27,6 +27,10 @@ public partial class Login [NotNull] private IDict? DictsService { get; set; } + private string? UserName { get; set; } + + private string? Password { get; set; } + /// /// /// @@ -37,6 +41,11 @@ public partial class Login Title = DictsService.GetWebTitle(); PostUrl = QueryHelper.AddQueryString("/Account/Login", "ReturnUrl", ReturnUrl ?? ""); + +#if DEBUG + UserName = "Admin"; + Password = "123789"; +#endif } void OnClickSwitchButton()