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 如何在本地路由上做持久化 #530

Open
zhong1998 opened this issue Jan 31, 2025 · 1 comment
Open

pinia 如何在本地路由上做持久化 #530

zhong1998 opened this issue Jan 31, 2025 · 1 comment

Comments

@zhong1998
Copy link

pinia 如何在本地路由上做持久化就是在auth,刷新页面不是通过网络请求去获取json,只要登录的时候,获取就行。我尝试在APP.vue或者main.ts中好像都不行

@zhong1998
Copy link
Author

persist: piniaPersistConfig("admin-menu"), 已经添加这行,项目直接访问,404 页面没找到

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