diff --git a/components/tab-bar/tab-bar.vue b/components/tab-bar/tab-bar.vue index 82661e4..40091ba 100644 --- a/components/tab-bar/tab-bar.vue +++ b/components/tab-bar/tab-bar.vue @@ -90,11 +90,14 @@ methods: { //点击tab切换 clickBar(index) { - this.getWorkerCounts() + for (let i = 0; i < this.tabList.length; i++) { if (index == i) { this.$emit('tab-index', i); if(index == 2) return + if(index != 0){ + this.getWorkerCounts() + } this.tabList[i].isCheck = true if (this.tabList[i].shaking) return