|
@@ -494,10 +494,20 @@ export default {
|
|
|
if (scroll) {
|
|
|
scroll.addEventListener('scroll', that.scrollHandle, true);
|
|
|
//如果是第一次进入,则滚动至底部
|
|
|
- scroll.scrollTo({
|
|
|
- top: this.activeScrollTop,
|
|
|
- behavior: 'smooth'
|
|
|
- })
|
|
|
+ if(this.firstEnter){
|
|
|
+ scroll.scrollTo({
|
|
|
+ top: scroll.scrollHeight,
|
|
|
+ behavior: 'smooth'
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+
|
|
|
+ scroll.scrollTo({
|
|
|
+ top: this.activeScrollTop,
|
|
|
+ behavior: 'smooth'
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}, 200)
|
|
|
|