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

多级目录之间如何keep-alive? #474

Closed
hoganfan opened this issue Feb 27, 2018 · 1 comment
Closed

多级目录之间如何keep-alive? #474

hoganfan opened this issue Feb 27, 2018 · 1 comment

Comments

@hoganfan
Copy link

我的项目中用到多级目录,按照教程,每级目录的根文件都添加一个

<keep-alive :include='cachedViews'>
   <router-view></router-view>
</keep-alive>

但这样的效果是,同一级目录之间的页面彼此跳转时,可以keep-alive,不同级目录之间的页面跳转会重新加载。
请问如何能做到多级目录之间也能keep-alive?

@hoganfan hoganfan changed the title 存在多级目录的情况下,如何在不同级目录之间keep-alive? 多级目录之间如何keep-alive? Feb 27, 2018
@hoganfan
Copy link
Author

#406

@hoganfan hoganfan reopened this Feb 27, 2018
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