Remove delegations loading

This commit is contained in:
liangping 2021-07-14 13:36:52 +08:00
parent 834dace884
commit ba1b9ebfe6

View File

@ -70,14 +70,14 @@ export default {
this.getKeyBase(res.identity)
},
async getStakingValidatorsDelegations(address) {
this.loadingDelegations = true
const res = await this.$api.fetch('getStakingValidatorsDelegations', {
validatorAddress: address
})
this.loadingDelegations = false
if (!res) return
this.delegationList = res
this.selfDelegations(res)
// this.loadingDelegations = true
// const res = await this.$api.fetch('getStakingValidatorsDelegations', {
// validatorAddress: address
// })
// this.loadingDelegations = false
// if (!res) return
// this.delegationList = res
// this.selfDelegations(res)
},
// 计算自委托比例
selfDelegations(list) {