|
@@ -52,12 +52,16 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
submit() {
|
|
|
+ let res = {}
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
updateUserPwd(this.user.oldPassword, this.user.newPassword).then(response => {
|
|
|
- this.$modal.msgSuccess("修改成功");
|
|
|
+ res = response;
|
|
|
+ this.$modal.msgSuccess(response.msg);
|
|
|
+ this.$emit("closePwd");
|
|
|
});
|
|
|
}
|
|
|
+ this.$modal.msgSuccess(res.msg);
|
|
|
});
|
|
|
},
|
|
|
close() {
|