Commit d555a303 authored by Damon's avatar Damon

perf: 自动跳转下一题

parent a0e00a05
......@@ -142,6 +142,10 @@ export default {
let info = {}
info.source = e.detail.source
this.$nextTick(() => {
this.swiperCurrent = current
})
// 正向滑动,到下一个的时候
// 是正向衔接
let isLoopPositive = current == START && lastIndex == END
......@@ -181,10 +185,6 @@ export default {
// 记录滑过来的位置,此值对于下一次滑动的计算很重要
this.swiperIndex = current
this.$emit("change", info)
this.$nextTick(() => {
this.swiperCurrent = current
})
if (this.model === 2) {
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