提交 ccf58fbc authored 作者: pengxiaohui's avatar pengxiaohui

轮播出错问题

上级 ffb02c62
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
this.isShowSwiper = false this.isShowSwiper = false
setTimeout(() => { setTimeout(() => {
this.isShowSwiper = true this.isShowSwiper = true
},100) },300)
return res.data.data return res.data.data
}) })
}, },
...@@ -74,11 +74,10 @@ export default { ...@@ -74,11 +74,10 @@ export default {
this.isShowSwiper = false this.isShowSwiper = false
setTimeout(() => { setTimeout(() => {
this.isShowSwiper = true this.isShowSwiper = true
},100) },300)
}, },
methods: { methods: {
handleSlideTo(index) { handleSlideTo(index) {
console.log(index)
this.$refs.mySwiper.swiper.slideTo(index) this.$refs.mySwiper.swiper.slideTo(index)
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论