|
@@ -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)
|