Commit a86b6fb1 authored by 张伯涛's avatar 张伯涛

延时变短

parent 431f726c
......@@ -54,7 +54,7 @@ export default {
setTimeout(() => {
this.$store.dispatch('app/scroll', null)
this.$refs['scrollContainer'].scrollTo({ top: this.$route.query.params.height || 0, behavior: 'smooth' })
}, 1500)
}, 500)
}
// 这里可以执行一些操作,比如根据变化的值进行一些逻辑处理
}
......
......@@ -429,7 +429,7 @@ export default {
vm.queryParams = JSON.parse(from.query.params)
vm.$store.dispatch('app/scroll', '1')
vm.getCourseByPagination()
}, 1000)
}, 500)
} else {
vm.$store.dispatch('app/scroll', '2')
}
......
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