Fix initialize of Budgets after login
This commit is contained in:
parent
ddf51b5922
commit
635f4de402
@ -36,8 +36,10 @@ export const useSessionStore = defineStore('session', {
|
|||||||
this.Session = {
|
this.Session = {
|
||||||
User: x.User,
|
User: x.User,
|
||||||
Token: x.Token,
|
Token: x.Token,
|
||||||
},
|
}
|
||||||
this.Budgets = x.Budgets;
|
for (const budget of x.Budgets) {
|
||||||
|
this.Budgets.set(budget.ID, budget);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async login(login: any) {
|
async login(login: any) {
|
||||||
const response = await POST("/user/login", JSON.stringify(login));
|
const response = await POST("/user/login", JSON.stringify(login));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user