瀏覽代碼

个人中心

natasha 3 周之前
父節點
當前提交
4d98bdc001
共有 1 個文件被更改,包括 10 次插入10 次删除
  1. 10 10
      src/views/personal_center/index.vue

+ 10 - 10
src/views/personal_center/index.vue

@@ -212,17 +212,17 @@ export default {
               if (res.status === 1) {
                 this.changePwdFlag = false;
                 this.$message.success('更改成功!');
-                setTimeout(() => {
-                  this.$store.dispatch('user/signOut');
-                  this.$router.push('/login');
-                }, 1000);
+                // setTimeout(() => {
+                //   this.$store.dispatch('user/signOut');
+                //   this.$router.push('/login');
+                // }, 1000);
 
-                // this.$refs.personalForm.resetFields();
-                // this.password_type = 'password';
-                // this.two_password_type = 'password';
-                // this.two_password_confirm_type = 'password';
-                // this.password_rrror = false;
-                // this.two_password_error = false;
+                this.$refs.personalForm.resetFields();
+                this.password_type = 'password';
+                this.two_password_type = 'password';
+                this.two_password_confirm_type = 'password';
+                this.password_rrror = false;
+                this.two_password_error = false;
               }
             })
             .catch(() => {