|
@@ -126,15 +126,12 @@ export default {
|
|
|
Cookies.remove("password");
|
|
|
Cookies.remove('rememberMe');
|
|
|
}
|
|
|
- this.$store
|
|
|
- .dispatch("Login", this.loginForm)
|
|
|
- .then(() => {
|
|
|
- this.$router.push({ path: this.redirect || "/" });
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.loading = false;
|
|
|
- this.getCode();
|
|
|
- });
|
|
|
+ this.$store.dispatch("Login", this.loginForm).then(() => {
|
|
|
+ this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
|
|
|
+ }).catch(() => {
|
|
|
+ this.loading = false;
|
|
|
+ this.getCode();
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
}
|