refactor: 分页响应数据结构调整

This commit is contained in:
Ray.Hao
2026-02-12 21:01:48 +08:00
parent c09ce3e4a8
commit 9480b426dc
45 changed files with 1013 additions and 1026 deletions

View File

@@ -169,8 +169,8 @@ const handleOperateClick = (data: IObject) => {
ElMessageBox.prompt("请输入用户名" + data.row.username + "」的新密码", "重置密码", {
confirmButtonText: "确定",
cancelButtonText: "取消",
})
.then(({ value }) => {
}).then(
({ value }) => {
if (!value || value.length < 6) {
ElMessage.warning("密码至少需6位字符请重新输入");
return false;
@@ -178,8 +178,11 @@ const handleOperateClick = (data: IObject) => {
UserAPI.resetPassword(data.row.id, value).then(() => {
ElMessage.success("密码重置成功,新密码是:" + value);
});
})
.catch(() => {});
},
() => {
// 用户取消
}
);
}
};
const handleOperateClick2 = (data: IOperateData) => {