We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用vue router结合zepto.fullpage进行开发,在page.vue里面初始化,然后返回index.vue,再进入page.vue就不能滑动了,看了一下源码是在fullpage初始化的时候,做了全局变量fullpage是否为null的判断,由于上一次进入page.vue的时候全局变量fullpage已经有值了,所以再次进入没有执行初始化,不知道算不算bug,我添加了destroy方法,将全局变量fullpage改为null,问题解决。 destroy: function() { fullpage = null }
destroy: function() { fullpage = null }
没有例子
没有其他信息
The text was updated successfully, but these errors were encountered:
你用的js版本,还是zepto版本?
Sorry, something went wrong.
zepto
是说缺少一个destroy api?那是不是可以提个pr
一直没时间重构,这个插件的架构已经明显跟不上现在了,也不支持ts,😄
哈哈哈,现在用也挺好用的,还没提过pr,我提个pr试试
yanhaijing
No branches or pull requests
问题是什么
使用vue router结合zepto.fullpage进行开发,在page.vue里面初始化,然后返回index.vue,再进入page.vue就不能滑动了,看了一下源码是在fullpage初始化的时候,做了全局变量fullpage是否为null的判断,由于上一次进入page.vue的时候全局变量fullpage已经有值了,所以再次进入没有执行初始化,不知道算不算bug,我添加了destroy方法,将全局变量fullpage改为null,问题解决。
destroy: function() { fullpage = null }
环境
在线例子
没有例子
其他
没有其他信息
The text was updated successfully, but these errors were encountered: