Return to page then reset

This commit is contained in:
PitiTheGrey
2020-05-03 22:01:07 +02:00
committed by GitHub
parent 0887141ec4
commit 3374ed29db
@@ -37,8 +37,9 @@ export default {
this.$root.$emit('bv::hide::modal', 'reset');
},
async reset () {
this.$router.push('/');
setTimeout(() => window.location.reload(true));
await axios.post('/api/v4/user/reset');
window.location.reload(true);
},
},
};