|
@@ -79,7 +79,7 @@ export default {
|
|
|
//监控data中的数据变化
|
|
|
watch: {
|
|
|
topImgInd() {
|
|
|
- window.scrollTo({ top: 0, behavior: "smooth" });
|
|
|
+ window.scrollTo({ top: 0});
|
|
|
},
|
|
|
},
|
|
|
//方法集合
|
|
@@ -88,7 +88,7 @@ export default {
|
|
|
this.myMenucShow = false;
|
|
|
this.topImgInd = id;
|
|
|
if (id === this.topImgInd)
|
|
|
- window.scrollTo({ top: 0, behavior: "smooth" });
|
|
|
+ window.scrollTo({ top: 0});
|
|
|
},
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|