fix: 发送用户重启密码功能,最少为6位字符(小于6位登陆时不允许的问题)
This commit is contained in:
@@ -445,8 +445,9 @@ function resetPassword(row: { [key: string]: any }) {
|
|||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
}
|
}
|
||||||
).then(({ value }) => {
|
).then(({ value }) => {
|
||||||
if (!value) {
|
if (!value || value.length < 6) {
|
||||||
ElMessage.warning("请输入新密码");
|
// 检查密码是否为空或少于6位
|
||||||
|
ElMessage.warning("密码至少需要6位字符,请重新输入");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
UserAPI.updatePassword(row.id, value).then(() => {
|
UserAPI.updatePassword(row.id, value).then(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user