Conflicts:
	ruoyi-ui/src/permission.js
	ruoyi-ui/src/views/login.vue
This commit is contained in:
疯狂的狮子li
2020-12-15 10:25:00 +08:00
3 changed files with 10 additions and 21 deletions

View File

@ -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();
});
}
});
}