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

Pinia状态持久化管理改动建议 #8

Open
1666931281 opened this issue Apr 23, 2024 · 0 comments
Open

Pinia状态持久化管理改动建议 #8

1666931281 opened this issue Apr 23, 2024 · 0 comments

Comments

@1666931281
Copy link

Pinia状态持久化是一个很好的功能,设置persist:true可以实现持久化,但是并不是所有的状态都需要使用持久化管理,这里建议对Pinia进行配置,util新建文件:
image
在您的stores下user.ts中可以做一个尝试
image
这样的话我们可以更灵活的去做持久化存储,您的项目学习性将更强!

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