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 @@
-
-
- 修改密码
-
-
- 退出
+
+
+
{{ user.userInfo?.username }}
+
+
+ {{ user.userInfo?.email }}
+
+
+
+
+ 修改密码
+ 关于
+ 退出
@@ -43,4 +50,13 @@ const logout = () => {
})
}
-
+