enhance: set username and routing on invite and setup

This commit is contained in:
Julian Krauser 2025-07-24 08:51:36 +02:00
parent e10bfdd315
commit 9d3348b6d5
2 changed files with 4 additions and 0 deletions

View file

@ -157,6 +157,8 @@ export default defineComponent({
this.inviteStatus = "success";
localStorage.setItem("accessToken", result.data.accessToken);
localStorage.setItem("refreshToken", result.data.refreshToken);
localStorage.setItem("routine", this.tab);
localStorage.setItem("username", this.username);
setTimeout(() => {
this.$router.push(`/admin`);
}, 1000);