forked from cerc-io/cosmos-explorer
fix: add onMounted
This commit is contained in:
parent
b8eea61013
commit
a65754e5b8
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user