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

延时变短

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