From aa8bc5d5122cc04150208874de56357a479ed51c Mon Sep 17 00:00:00 2001 From: dreamnyj Date: Sat, 11 May 2024 20:34:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=91=E9=80=81=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E9=87=8D=E5=90=AF=E5=AF=86=E7=A0=81=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E6=9C=80=E5=B0=91=E4=B8=BA6=E4=BD=8D=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=EF=BC=88=E5=B0=8F=E4=BA=8E6=E4=BD=8D=E7=99=BB=E9=99=86?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E5=85=81=E8=AE=B8=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 5e98bf53..8b202496 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -445,8 +445,9 @@ function resetPassword(row: { [key: string]: any }) { cancelButtonText: "取消", } ).then(({ value }) => { - if (!value) { - ElMessage.warning("请输入新密码"); + if (!value || value.length < 6) { + // 检查密码是否为空或少于6位 + ElMessage.warning("密码至少需要6位字符,请重新输入"); return false; } UserAPI.updatePassword(row.id, value).then(() => { -- Gitee