fix client-side logout

currently, after logout, we still leave the same user set in the store.
lets clear it out so we don't end up still logged in
This commit is contained in:
Igor Serebryany 2023-10-06 14:33:19 -07:00
parent 49c1b8f106
commit 3f7ba82e6a
No known key found for this signature in database
GPG key ID: 0AF607692FD9EB24

View file

@ -85,6 +85,7 @@ export default {
if (localStorage.getItem('token')) {
localStorage.removeItem('token')
}
this.$store.commit('user/setUser', null)
this.$store.commit('libraries/setUserPlaylists', [])
this.$store.commit('libraries/setCollections', [])
this.$router.push('/login')