fix: add onMounted
This commit is contained in:
parent
b8eea61013
commit
a65754e5b8
@ -1,10 +1,13 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useGovStore } from '@/stores';
|
import { useGovStore } from '@/stores';
|
||||||
import ProposalListItem from '@/components/ProposalListItem.vue';
|
import ProposalListItem from '@/components/ProposalListItem.vue';
|
||||||
import { ref } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
const tab = ref("")
|
const tab = ref("")
|
||||||
const store = useGovStore()
|
const store = useGovStore()
|
||||||
store.fetchProposals('2')
|
|
||||||
|
onMounted(()=>{
|
||||||
|
store.fetchProposals('2')
|
||||||
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
Loading…
Reference in New Issue
Block a user