mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-22 05:56:51 +00:00
fix login bug
This commit is contained in:
parent
004c9a697c
commit
a371a84426
1 changed files with 2 additions and 2 deletions
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue