dujingxian пре 4 година
родитељ
комит
eb114af7bb
1 измењених фајлова са 11 додато и 0 уклоњено
  1. 11 0
      src/pages/index.vue

+ 11 - 0
src/pages/index.vue

@@ -178,6 +178,17 @@ export default {
                     // });
                     const res = await editPwd({new_pw: this.editForm.pwd,new_pw2: this.editForm.rePwd,})
                     console.log('修改密码', res);
+                    if (res && res.message == "成功") {
+                        this.$message({
+                            message: "修改成功",
+                            type: "success",
+                            center: true,
+                            duration: 1000,
+                            onClose: () => {
+                                this.onCloseEditDialog();
+                            },
+                        });
+                    }
                 } else {
                     console.log("error submit!!");
                     return false;