Code Monkey home page Code Monkey logo

Comments (6)

proc07 avatar proc07 commented on July 27, 2024 1

deactivate 的时候 设置关闭上拉加载没有用

from vue-infinite-scroll.

baiyaaaaa avatar baiyaaaaa commented on July 27, 2024

按照代码上看,router路由切换后会执行unbind事件,应该不会造成这个情况,而且我测试了一遍,也无法复现这个问题,你可以提交这部分的代码看看

from vue-infinite-scroll.

silverd avatar silverd commented on July 27, 2024

谢谢,问题已解决。是因为我的 router-view 是 keep-alive 的,所以切换页面时不会触发 unbind

现在的解决办法是在组件 deactivate 时设置 this.busy = true

from vue-infinite-scroll.

zhiyiny avatar zhiyiny commented on July 27, 2024

怎么能做到deactivate时进行设置,我也用的这个插件,也碰到了问题,方便探讨下吗

from vue-infinite-scroll.

proc07 avatar proc07 commented on July 27, 2024

我也是遇到了这个问题

from vue-infinite-scroll.

poezhang avatar poezhang commented on July 27, 2024

我也遇到相同的问题,page1中使用了shop-list组件,且shop-list组件中在window添加了scroll事件的侦听。当page1 通过 vue-router转到page2时候,如果page2中也使用了shop-list组件,就会出现当触发scroll事件时,scroll事件绑定的回调函数两次触发的情况,也就是说页面中的window对象上添加了两个相同的scroll事件。

from vue-infinite-scroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.