|
|
|
|
@ -195,7 +195,10 @@ export default {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.$store
|
|
|
|
|
.dispatch("user/login", this.loginForm)
|
|
|
|
|
.dispatch("user/login", {
|
|
|
|
|
username: this.loginForm.username,
|
|
|
|
|
password: window.btoa(this.loginForm.password),
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
console.log(this.redirect);
|
|
|
|
|
if (this.isRemember) {
|
|
|
|
|
|