Convert frontend to Vue #3

Merged
jacob1123 merged 158 commits from vue into master 2022-02-08 22:20:11 +01:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit 339c230756 - Show all commits

View File

@ -54,7 +54,6 @@ const dashboard = {
commit("setCurrentBudget", element);
break
}
await dispatch("fetchBudget", budgetid);
}
}
}

View File

@ -38,6 +38,13 @@ const store = createStore({
}
})
store.subscribe((mutation, state) => {
if(mutation.type == "setCurrentBudget"){
console.log(mutation, state);
store.dispatch("fetchBudget", mutation.payload.ID)
}
})
store.subscribe((mutation, state) => {
let persistedState = {
Session: state.Session,