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

Bug: 针对 Vben5框架里KeepAlive 未生效的问题 #4350

Closed
5 tasks done
renyi818 opened this issue Sep 10, 2024 · 1 comment
Closed
5 tasks done

Bug: 针对 Vben5框架里KeepAlive 未生效的问题 #4350

renyi818 opened this issue Sep 10, 2024 · 1 comment

Comments

@renyi818
Copy link

Version

Vben Admin V5

Describe the bug?

vben5框架中的tab页签,有看到使用keepalive,但是实际上未生效, 请问是需要如何特殊配置吗?

Reproduction

打开示例项目中的“剪贴板”菜单, 在文本框中输入任何文字,切换tab页签后返回页面, 文本框中的文字会发现清除了.

System Info

Mac

Relevant log output

No response

Validations

@mynetfan
Copy link
Collaborator

要启用页面的KeepAlive,需要在路由的meta中配置keepAlive: true。
参考文档:https://doc.vben.pro/guide/essentials/route.html#keepalive

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