fix login bug
This commit is contained in:
parent
004c9a697c
commit
a371a84426
|
@ -65,8 +65,8 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
console.log(data.loginStatus);
|
console.log(data.success);
|
||||||
sessionStorage.setItem('current_user', data.userName);
|
sessionStorage.setItem('current_user', data.user.username);
|
||||||
this.$router.push({ name: 'home' });
|
this.$router.push({ name: 'home' });
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
Reference in a new issue