From a01acddb9c8e6ca05054e7ba3c5eed27e24d7326 Mon Sep 17 00:00:00 2001 From: nsnail Date: Wed, 22 May 2024 19:23:36 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=94=A8=20=E5=96=9C=E6=AC=A2?= =?UTF-8?q?=E5=B0=B1=E7=82=B9=E4=B8=AA=20Star=E2=AD=90=EF=B8=8F=20?= =?UTF-8?q?=E5=90=A7=EF=BC=81=20(#127)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Attributes/DataValidation/PortAttribute.cs | 2 +- .../admin/src/views/guest/components/passwordForm.vue | 11 ++++++++++- .../admin/src/views/home/widgets/components/ver.vue | 3 +++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/backend/NetAdmin.Domain/Attributes/DataValidation/PortAttribute.cs b/src/backend/NetAdmin.Domain/Attributes/DataValidation/PortAttribute.cs index e0e18f7c..36d55df8 100644 --- a/src/backend/NetAdmin.Domain/Attributes/DataValidation/PortAttribute.cs +++ b/src/backend/NetAdmin.Domain/Attributes/DataValidation/PortAttribute.cs @@ -10,7 +10,7 @@ public sealed class PortAttribute : RangeAttribute /// Initializes a new instance of the class. /// public PortAttribute() // - : base(1, 65535) + : base(1, ushort.MaxValue) { ErrorMessageResourceName = nameof(Ln.无效端口号); ErrorMessageResourceType = typeof(Ln); diff --git a/src/frontend/admin/src/views/guest/components/passwordForm.vue b/src/frontend/admin/src/views/guest/components/passwordForm.vue index f775beb6..a547a620 100644 --- a/src/frontend/admin/src/views/guest/components/passwordForm.vue +++ b/src/frontend/admin/src/views/guest/components/passwordForm.vue @@ -15,7 +15,9 @@ - {{ $t('登录') }} + {{ starred ? $t('登录') : $t('Star 后可登录') }} + @@ -44,9 +45,11 @@ export default { justify-content: center; align-items: center; } + .main { height: 25rem; } + .wrap { gap: 1rem; }