Implement Budget-List via Getter
This commit is contained in:
@ -10,6 +10,11 @@ const dashboard = {
|
||||
state.Budgets = budgets;
|
||||
}
|
||||
},
|
||||
getters: {
|
||||
Budgets(state) {
|
||||
return state.Budgets || [];
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
fetchDashboard ({state, commit, rootState}) {
|
||||
fetch("/api/v1/dashboard", {
|
||||
|
Reference in New Issue
Block a user