From eafcbb81f98cd60f76e205bd724b358bb54b68e4 Mon Sep 17 00:00:00 2001 From: Kimdiego2098 <2248356998@qq.com> Date: Thu, 25 Apr 2024 17:52:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20DEBUG=E5=90=AF=E5=8A=A8=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=A1=AB=E5=85=85=E8=B4=A6=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/UserLogin.razor.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ThingsGateway.Admin.Razor/Components/UserLogin.razor.cs b/src/ThingsGateway.Admin.Razor/Components/UserLogin.razor.cs index d13e0605f..6e57b9e7b 100644 --- a/src/ThingsGateway.Admin.Razor/Components/UserLogin.razor.cs +++ b/src/ThingsGateway.Admin.Razor/Components/UserLogin.razor.cs @@ -40,10 +40,16 @@ public partial class UserLogin protected override void OnInitialized() { base.OnInitialized(); +#if DEBUG + Model.Account = "SuperAdmin"; + Model.Password = "111111"; +#else if (WebsiteOption.Value.Demo) { Model.Account = "SuperAdmin"; Model.Password = "111111"; } +#endif + } -} \ No newline at end of file +}