improve UI

This commit is contained in:
liangping 2023-05-27 14:08:28 +08:00
parent f23cb8b440
commit bd841633b1
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { ref, onMounted, computed, watchEffect } from 'vue';
import { ref, onMounted, computed, onUnmounted } from 'vue';
import { fromHex, toBase64 } from '@cosmjs/encoding';
import {
useFormatter,

View File

@ -75,8 +75,8 @@ export const useGovStore = defineStore('govStore', {
async fetchProposalDeposits(proposalId: string) {
return this.blockchain.rpc.getGovProposalDeposits(proposalId);
},
async fetchProposalVotes(proposalId: string, next_key?: string) {
return this.blockchain.rpc.getGovProposalVotes(proposalId, next_key);
async fetchProposalVotes(proposalId: string, page?: PageRequest) {
return this.blockchain.rpc.getGovProposalVotes(proposalId, page);
},
async fetchProposalVotesVoter(proposalId: string, voter: string) {
return this.blockchain.rpc.getGovProposalVotesVoter(proposalId, voter);