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

我的疑问 #4

Open
chenmommo opened this issue Feb 18, 2019 · 0 comments
Open

我的疑问 #4

chenmommo opened this issue Feb 18, 2019 · 0 comments

Comments

@chenmommo
Copy link

在tabbar页面时,点击当前页面的tabbar,页面也会重新加载,跳转点击事件需要加限制
let currentPages = getCurrentPages();
let _this = currentPages[currentPages.length - 1];
let pagePath = _this.route;
const { url = '' } = e.currentTarget.dataset
if ('/'+pagePath===url)
return
同时,重新点击每个tabbar页面都会闪烁一下,可以看看官网的自定义tabbar,但是都不可避免需要隐藏默认的tabbar,在模拟器上会出现明显的两次加载tabbar的变化,真机上不太明显。

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

No branches or pull requests

1 participant