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

应该怎么设置tab页面可以像原生app一样,可以缓存,在tab页面后退即使退出程序 #57

Open
railgun20001 opened this issue Sep 25, 2018 · 1 comment

Comments

@railgun20001
Copy link

用push切换tab页面的话,会不断堆积缓存,后退时得一个一个退
用replace的话tab页面又不会缓存
应该怎么设置tab页面可以像原生app一样,可以缓存,在tab页面后退即使退出程序

@zack24q
Copy link
Owner

zack24q commented Sep 25, 2018

我目前是把tab的切换状态放到组件状态中去管理,不把它作为不同的路由来对待

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

2 participants