Page reload after reset button pressed

This commit is contained in:
PitiTheGrey
2020-05-02 14:54:14 +02:00
committed by GitHub
parent 1c7385f774
commit e5c5f7f1d0
@@ -38,6 +38,7 @@ export default {
},
async reset () {
const response = await axios.post('/api/v4/user/reset');
window.location.reload(true);
// @TODO: Not sure if this is correct
this.$store.user = response.data.data.user;
this.$router.push('/');