tianyi 1 week ago
parent
commit
c098d9810a
  1. 5
      components/tab-bar/tab-bar.vue

5
components/tab-bar/tab-bar.vue

@ -90,11 +90,14 @@
methods: { methods: {
//tab //tab
clickBar(index) { clickBar(index) {
this.getWorkerCounts()
for (let i = 0; i < this.tabList.length; i++) { for (let i = 0; i < this.tabList.length; i++) {
if (index == i) { if (index == i) {
this.$emit('tab-index', i); this.$emit('tab-index', i);
if(index == 2) return if(index == 2) return
if(index != 0){
this.getWorkerCounts()
}
this.tabList[i].isCheck = true this.tabList[i].isCheck = true
if (this.tabList[i].shaking) return if (this.tabList[i].shaking) return

Loading…
Cancel
Save