fix(ranking): 关闭人数排行后判断金额排行是否有数据

This commit is contained in:
woody 2025-09-26 09:44:43 +08:00
parent 6b1169ea43
commit 6e93dcdde3
1 changed files with 7 additions and 4 deletions

View File

@ -384,10 +384,13 @@ export default {
//
closePeopleRanking() {
this.showPeopleRanking = false
//
setTimeout(() => {
this.showAmountRanking = true
}, 300)
if (this.amountTopThree.length > 0) {
setTimeout(() => {
this.showAmountRanking = true
}, 300)
} else {
this.$emit('onRankingComplete')
}
},
//