Browse Source

点击移动

xiaohaizhao 1 year ago
parent
commit
69edbca2a5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pages/index/index/casePages/tabs.vue

+ 2 - 1
pages/index/index/casePages/tabs.vue

@@ -45,6 +45,7 @@ export default {
                         this.active = tabs[0].value;
                         resolve(this.active)
                     }
+                    this.setWidths()
                 });
             })
         },
@@ -60,7 +61,7 @@ export default {
             }, 100);
         },
         changeActive(active, index) {
-            this.scrollLeft = this.widths[index]
+            this.scrollLeft = this.widths[index];
             if (this.active == active) return;
             this.active = active
             this.$emit("getList", true)