From 87aed10821e4c9b12028544055ef2b91aee1b173 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 11 Sep 2021 21:05:23 +0800 Subject: [PATCH] Fix Votes loading issue --- src/views/GovernanceProposalView.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/GovernanceProposalView.vue b/src/views/GovernanceProposalView.vue index 47ab45bf..75f3a6e9 100644 --- a/src/views/GovernanceProposalView.vue +++ b/src/views/GovernanceProposalView.vue @@ -345,9 +345,10 @@ export default { methods: { loadVotes() { if (this.next) { - this.next = null const pid = this.$route.params.proposalid - this.$http.getGovernanceVotes(pid, this.next).then(res => { + const { next } = this + this.next = null + this.$http.getGovernanceVotes(pid, next).then(res => { this.$set(this.votes, 'votes', this.votes.votes.concat(res.votes)) this.next = res.pagination ? res.pagination.next_key : null })