Remove vuex
This commit is contained in:
@ -2,17 +2,22 @@
|
||||
import NewBudget from '../dialogs/NewBudget.vue';
|
||||
import Card from '../components/Card.vue';
|
||||
import { defineComponent } from 'vue';
|
||||
import { mapState } from 'pinia';
|
||||
import { useSessionStore } from '../stores/session';
|
||||
|
||||
export default defineComponent({
|
||||
props: ["budgetid"],
|
||||
components: { NewBudget, Card }
|
||||
components: { NewBudget, Card },
|
||||
computed: {
|
||||
...mapState(useSessionStore, ["BudgetsList"]),
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h1>Budgets</h1>
|
||||
<div class="grid md:grid-cols-2 gap-6">
|
||||
<Card v-for="budget in $store.getters.Budgets">
|
||||
<Card v-for="budget in BudgetsList">
|
||||
<router-link v-bind:to="'/budget/'+budget.ID+'/budgeting'" class="contents">
|
||||
<!--<svg class="w-24"></svg>-->
|
||||
<p class="w-24 text-center text-6xl"></p>
|
||||
|
Reference in New Issue
Block a user