feat: ✨ 个人中心修改密码

This commit is contained in:
ray committed 2024-08-14 18:32:59 +08:00
1 parent 674629269c
commit 4ecae53161
4 files changed
+97 -26

No files matched your search

+1 -1
View File
@@ -158,7 +158,7 @@ function handleOperatClick(data: IOperatData) {
ElMessage.warning("密码至少需要6位字符,请重新输入");
return false;
}
UserAPI.updatePassword(data.row.id, value).then(() => {
UserAPI.resetPassword(data.row.id, value).then(() => {
ElMessage.success("密码重置成功,新密码是:" + value);
});
});