Skip to content
New issue

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使用的问题 #116

Open
xing00 opened this issue Jan 14, 2020 · 5 comments
Open

结合vue router使用的问题 #116

xing00 opened this issue Jan 14, 2020 · 5 comments
Assignees

Comments

@xing00
Copy link
Contributor

xing00 commented Jan 14, 2020

问题是什么

使用vue router结合zepto.fullpage进行开发,在page.vue里面初始化,然后返回index.vue,再进入page.vue就不能滑动了,看了一下源码是在fullpage初始化的时候,做了全局变量fullpage是否为null的判断,由于上一次进入page.vue的时候全局变量fullpage已经有值了,所以再次进入没有执行初始化,不知道算不算bug,我添加了destroy方法,将全局变量fullpage改为null,问题解决。
destroy: function() { fullpage = null }

环境

  • 手机: 任何手机
  • 系统:任何系统
  • 浏览器:任何浏览器
  • zepto版本:1.1
  • zepto.fullpage版本:v0.5.0

在线例子

没有例子

其他

没有其他信息

@yanhaijing yanhaijing self-assigned this Jan 14, 2020
@yanhaijing
Copy link
Owner

你用的js版本,还是zepto版本?

@xing00
Copy link
Contributor Author

xing00 commented Jan 14, 2020

你用的js版本,还是zepto版本?

zepto

@yanhaijing
Copy link
Owner

是说缺少一个destroy api?那是不是可以提个pr

@yanhaijing
Copy link
Owner

一直没时间重构,这个插件的架构已经明显跟不上现在了,也不支持ts,😄

@xing00
Copy link
Contributor Author

xing00 commented Jan 14, 2020

哈哈哈,现在用也挺好用的,还没提过pr,我提个pr试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants