疯狂的狮子li
2020-12-15 1249c7ca26491a51c1cf87aea1d277b6fedf30ab
ruoyi-ui/src/views/login.vue
@@ -126,12 +126,9 @@
            Cookies.remove("password");
            Cookies.remove('rememberMe');
          }
          this.$store
            .dispatch("Login", this.loginForm)
            .then(() => {
              this.$router.push({ path: this.redirect || "/" });
            })
            .catch(() => {
          this.$store.dispatch("Login", this.loginForm).then(() => {
            this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
          }).catch(() => {
              this.loading = false;
              this.getCode();
            });