From c098d9810a839cb294455bc0ed66908e1904e576 Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Thu, 9 Apr 2026 13:42:13 +0800 Subject: [PATCH] 11 --- components/tab-bar/tab-bar.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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