mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-24 14:26:53 +00:00
change sessionStorage item
This commit is contained in:
parent
ffeb499b91
commit
b89ec4b279
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ export default {
|
||||||
})
|
})
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
console.log(data.success);
|
console.log(data.success);
|
||||||
sessionStorage.setItem('current_user', data.user.username);
|
sessionStorage.setItem('current_user', JSON.stringify({id:data.user._id,username:data.user.username,email:data.user.email}));
|
||||||
this.$router.push({ name: 'home' });
|
this.$router.push({ name: 'home' });
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
Loading…
Reference in a new issue