Fix Votes loading issue
This commit is contained in:
parent
08ecad1c27
commit
87aed10821
@ -345,9 +345,10 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
loadVotes() {
|
loadVotes() {
|
||||||
if (this.next) {
|
if (this.next) {
|
||||||
this.next = null
|
|
||||||
const pid = this.$route.params.proposalid
|
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.$set(this.votes, 'votes', this.votes.votes.concat(res.votes))
|
||||||
this.next = res.pagination ? res.pagination.next_key : null
|
this.next = res.pagination ? res.pagination.next_key : null
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user