소스 검색

点击移动

xiaohaizhao 1 년 전
부모
커밋
69edbca2a5
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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)