Remove vuex

This commit is contained in:
2022-02-10 15:49:21 +00:00
parent 8b0e368d58
commit c693625e34
21 changed files with 322 additions and 351 deletions

View File

@ -1,7 +1,7 @@
<script lang="ts">
import Card from '../components/Card.vue';
import { defineComponent } from "vue";
import { NEW_BUDGET } from "../store/action-types";
import { useBudgetsStore } from '../stores/budget';
export default defineComponent({
data() {
@ -13,7 +13,7 @@ export default defineComponent({
components: { Card },
methods: {
saveBudget() {
this.$store.dispatch(NEW_BUDGET, this.$data.budgetName);
useBudgetsStore().NewBudget(this.$data.budgetName);
this.$data.dialog = false;
},
newBudget() {