From bcd25fde56d979bdfa9c5c356355689fdc0e7767 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 8 Dec 2023 18:19:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../top-bar/avatar/ResetPasssword.vue | 28 +++++++---------- .../components/top-bar/avatar/index.vue | 30 ++++++++++++++----- 2 files changed, 34 insertions(+), 24 deletions(-) diff --git a/ui/src/layout/components/top-bar/avatar/ResetPasssword.vue b/ui/src/layout/components/top-bar/avatar/ResetPasssword.vue index 9cd99decb..da40f1b86 100644 --- a/ui/src/layout/components/top-bar/avatar/ResetPasssword.vue +++ b/ui/src/layout/components/top-bar/avatar/ResetPasssword.vue @@ -6,6 +6,7 @@ :model="resetPasswordForm" :rules="rules" > +

新密码

- @@ -26,12 +25,11 @@ class="input-item" v-model="resetPasswordForm.re_password" placeholder="请输入确认密码" + show-password > - +

使用邮箱

- @@ -53,9 +48,6 @@ v-model="resetPasswordForm.code" placeholder="请输入验证码" > - @@ -107,8 +100,8 @@ const rules = ref>({ }, { min: 6, - max: 30, - message: '长度在 6 到 30 个字符', + max: 20, + message: '长度在 6 到 20 个字符', trigger: 'blur' } ], @@ -120,8 +113,8 @@ const rules = ref>({ }, { min: 6, - max: 30, - message: '长度在 6 到 30 个字符', + max: 20, + message: '长度在 6 到 20 个字符', trigger: 'blur' }, { @@ -152,6 +145,7 @@ const open = () => { re_password: '' } resetPasswordDialog.value = true + resetPasswordFormRef.value?.resetFields() } const resetPassword = () => { resetPasswordFormRef.value diff --git a/ui/src/layout/components/top-bar/avatar/index.vue b/ui/src/layout/components/top-bar/avatar/index.vue index bccf2e2be..7dda01804 100644 --- a/ui/src/layout/components/top-bar/avatar/index.vue +++ b/ui/src/layout/components/top-bar/avatar/index.vue @@ -11,13 +11,20 @@ @@ -43,4 +50,13 @@ const logout = () => { }) } - +