Browse Source

添加领导页修改密码提示

bihuisong 1 tháng trước cách đây
mục cha
commit
6563865a46

+ 5 - 1
system_ui/src/views/system/user/profile/resetPwdLeader.vue

@@ -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() {