|
|
|
@ -198,11 +198,12 @@ export default {
|
|
|
|
|
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((res) => {
|
|
|
|
|
this.$router.push({path: this.redirect || "/"}).catch((res) => {
|
|
|
|
|
});
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
}).catch((res) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.$message.error(res);
|
|
|
|
|
if (this.captchaEnabled) {
|
|
|
|
|
this.getCode();
|
|
|
|
|
}
|
|
|
|
|