fix: add onMounted

This commit is contained in:
alisa 2023-04-25 16:08:42 +08:00
parent b8eea61013
commit a65754e5b8

View File

@ -1,10 +1,13 @@
<script lang="ts" setup>
import { useGovStore } from '@/stores';
import ProposalListItem from '@/components/ProposalListItem.vue';
import { ref } from 'vue'
import { ref, onMounted } from 'vue'
const tab = ref("")
const store = useGovStore()
store.fetchProposals('2')
onMounted(()=>{
store.fetchProposals('2')
})
</script>
<template>