enhance: set username and routing on invite and setup
This commit is contained in:
parent
e10bfdd315
commit
9d3348b6d5
2 changed files with 4 additions and 0 deletions
|
@ -159,6 +159,8 @@ export default defineComponent({
|
|||
this.setupStatus = "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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue