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

页面使用keepalive后,back返回,页面空白 #54

Open
renaiqin opened this issue Jul 3, 2020 · 1 comment
Open

页面使用keepalive后,back返回,页面空白 #54

renaiqin opened this issue Jul 3, 2020 · 1 comment

Comments

@renaiqin
Copy link

renaiqin commented Jul 3, 2020

很多页面都是使用的keeplive,然后点击返回,back(-1),页面进来了,但是dom都没渲染,整个页面成空白的状态。

@tnnevol
Copy link

tnnevol commented Jan 22, 2021

我的也是这样
<keep-alive> <!-- 需要缓存的视图组件 --> <router-view v-if="$route.meta.keepAlive" v-transition /> </keep-alive> <!-- 不需要缓存的视图组件 --> <router-view v-if="!$route.meta.keepAlive" v-transition />

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