提交 5b984921 编写于 作者: guangjun.yang's avatar guangjun.yang

将timeout设置去掉

上级 600a805a
......@@ -343,24 +343,24 @@ export default {
if (this.$rocNative.isWeb) {
this.getProjectInfo(this.queryParams);
}
window.addEventListener(
'scroll',
() => {
if (timeOutId) {
clearTimeout(timeOutId);
}
timeOutId = setTimeout(this.handleScroll, 10);
},
false
);
// window.addEventListener(
// 'scroll',
// () => {
// this.handleScroll()
// if (timeOutId) {
// clearTimeout(timeOutId);
// }
// timeOutId = setTimeout(this.handleScroll, 10);
// },
// false
// );
window.addEventListener(
'scroll',
() => {
this.handleScroll()
},
false
);
},
methods: {
handleScroll() {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册