mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-22 00:36:52 +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) => {
|
||||
console.log(data.loginStatus);
|
||||
sessionStorage.setItem('current_user', data.userName);
|
||||
console.log(data.success);
|
||||
sessionStorage.setItem('current_user', data.user.username);
|
||||
this.$router.push({ name: 'home' });
|
||||
})
|
||||
.catch((err) => {
|
||||
|
|
Loading…
Reference in a new issue