Browse Source

fix bug:修复输入一次密码错误后就一直错误的问题

hushuyu 6 months ago
parent
commit
fa22fe725b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/views/AuthPage/components/AuthCard.vue

+ 5 - 0
src/views/AuthPage/components/AuthCard.vue

@@ -416,6 +416,11 @@ export default {
                       message: res.data.message,
                       type: "error"
                     });
+
+                    localStorage.removeItem("rememberMe");
+                    localStorage.removeItem("phone");
+                    localStorage.removeItem("password");
+                    localStorage.removeItem("s");
                     Object.assign(this.$data, this.$options.data());
                     this.$refs.verifier.init();
                   }