Commit d555a303 authored by Damon's avatar Damon

perf: 自动跳转下一题

parent a0e00a05
...@@ -142,6 +142,10 @@ export default { ...@@ -142,6 +142,10 @@ export default {
let info = {} let info = {}
info.source = e.detail.source info.source = e.detail.source
this.$nextTick(() => {
this.swiperCurrent = current
})
// 正向滑动,到下一个的时候 // 正向滑动,到下一个的时候
// 是正向衔接 // 是正向衔接
let isLoopPositive = current == START && lastIndex == END let isLoopPositive = current == START && lastIndex == END
...@@ -182,10 +186,6 @@ export default { ...@@ -182,10 +186,6 @@ export default {
this.swiperIndex = current this.swiperIndex = current
this.$emit("change", info) this.$emit("change", info)
this.$nextTick(() => {
this.swiperCurrent = current
})
if (this.model === 2) { if (this.model === 2) {
this.changeModel() this.changeModel()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment