Remove vuex
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user