Commit 1b7bd109 authored by 张伯涛's avatar 张伯涛

注释掉跳转滚动

parent 5caca94d
......@@ -47,17 +47,17 @@ export default {
// 深度观察监听
deep: true
},
scroll(newValue, oldValue) {
// 监听myVar变量的变化
// console.log('scrollscrollscrollscrollscrollscroll scroll:', newValue)
if (newValue === '1' && this.$route.path === '/courseResources/courseMall/index') {
setTimeout(() => {
this.$store.dispatch('app/scroll', null)
this.$refs['scrollContainer'].scrollTo({ top: this.$route.query.params.height || 0, behavior: 'smooth' })
}, 500)
}
// 这里可以执行一些操作,比如根据变化的值进行一些逻辑处理
}
// scroll(newValue, oldValue) {
// // 监听myVar变量的变化
// // console.log('scrollscrollscrollscrollscrollscroll scroll:', newValue)
// if (newValue === '1' && this.$route.path === '/courseResources/courseMall/index') {
// setTimeout(() => {
// this.$store.dispatch('app/scroll', null)
// this.$refs['scrollContainer'].scrollTo({ top: this.$route.query.params.height || 0, behavior: 'smooth' })
// }, 500)
// }
// // 这里可以执行一些操作,比如根据变化的值进行一些逻辑处理
// }
},
mounted() {
// setTimeout(() => {
......
......@@ -4,9 +4,9 @@
<nav-list :list="navList" :current-menu="'/courseResources/index'" />
<div v-loading="loading" class="courseDetails-content">
<div class="backBtnFather">
<div class=backBtn>
<i class="el-icon-d-arrow-left" @click="handleGoBack">返回</i>
</div>
<!-- <div class=backBtn>-->
<!-- <i class="el-icon-d-arrow-left" @click="handleGoBack">返回</i>-->
<!-- </div>-->
</div>
<div class="courseCard">
<img v-if="courseDetails.availableTrialTime === 0" class="guoqiPathClass" :src="guoqiPath" alt="">
......
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