|
|
@ -225,15 +225,19 @@ const submitForm = (formEl: FormInstance | undefined) => {
|
|
|
|
formEl.validate(valid => {
|
|
|
|
formEl.validate(valid => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
// console.log(valid);
|
|
|
|
// console.log(valid);
|
|
|
|
resetPW({
|
|
|
|
if (passwordForm.password !== passwordForm.confirmPassword) {
|
|
|
|
id: passwordForm.id,
|
|
|
|
message("原密码要与新密码不一样!", { type: "error" });
|
|
|
|
password: passwordForm.password
|
|
|
|
} else {
|
|
|
|
}).then(res => {
|
|
|
|
resetPW({
|
|
|
|
if (res.code === 200) {
|
|
|
|
id: passwordForm.id,
|
|
|
|
message("重置成功", { type: "success" });
|
|
|
|
password: passwordForm.password
|
|
|
|
dialogFormVisible.value = false;
|
|
|
|
}).then(res => {
|
|
|
|
}
|
|
|
|
if (res.code === 200) {
|
|
|
|
});
|
|
|
|
message("重置成功", { type: "success" });
|
|
|
|
|
|
|
|
dialogFormVisible.value = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
dialogFormVisible.value = false;
|
|
|
|
dialogFormVisible.value = false;
|
|
|
|
console.log("error submit!");
|
|
|
|
console.log("error submit!");
|
|
|
|