Convert other pages to composition API
This commit is contained in:
@ -1,17 +1,13 @@
|
||||
<script lang="ts">
|
||||
<script lang="ts" setup>
|
||||
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 },
|
||||
computed: {
|
||||
...mapState(useSessionStore, ["BudgetsList"]),
|
||||
}
|
||||
})
|
||||
const props = defineProps<{
|
||||
budgetid: string,
|
||||
}>();
|
||||
|
||||
const BudgetsList = useSessionStore().BudgetsList;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
Reference in New Issue
Block a user