fix login bug

This commit is contained in:
NekoVari 2023-09-27 00:58:43 +07:00
parent 004c9a697c
commit a371a84426

View file

@ -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) => {