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) this.getKeyBase(res.identity)
}, },
async getStakingValidatorsDelegations(address) { async getStakingValidatorsDelegations(address) {
this.loadingDelegations = true // this.loadingDelegations = true
const res = await this.$api.fetch('getStakingValidatorsDelegations', { // const res = await this.$api.fetch('getStakingValidatorsDelegations', {
validatorAddress: address // validatorAddress: address
}) // })
this.loadingDelegations = false // this.loadingDelegations = false
if (!res) return // if (!res) return
this.delegationList = res // this.delegationList = res
this.selfDelegations(res) // this.selfDelegations(res)
}, },
// 计算自委托比例 // 计算自委托比例
selfDelegations(list) { selfDelegations(list) {