This commit is contained in:
p11037 2023-11-24 10:55:15 +07:00
commit 240701ed7a
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@
<v-list-item> <v-list-item>
<v-list-item-title class="title-text">{{nearestStructureData.display_name}}</v-list-item-title> <v-list-item-title class="title-text">{{nearestStructureData.display_name}}</v-list-item-title>
<v-list-item-subtitle class="subtitle-text">{{destination.subTitle}}</v-list-item-subtitle> <!-- <v-list-item-subtitle class="subtitle-text">{{destination.subTitle}}</v-list-item-subtitle> -->
</v-list-item> </v-list-item>
<v-list-item> <v-list-item>

View file

@ -119,7 +119,7 @@ export default {
// localStorage.setItem('isLoggedIn', true); // localStorage.setItem('isLoggedIn', true);
// console.log(isLoggedIn); // console.log(isLoggedIn);
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) => {