pinia-plugin-persistedstate
pinia-plugin-persistedstate copied to clipboard
组件外使用代persist的pinia store ,无法持久化
Describe the bug
组件外使用代persist的pinia store ,无法持久化
Reproduction
组件外使用代persist的pinia store ,无法持久化
System Info
组件外使用代persist的pinia store ,无法持久化
Used Package Manager
pnpm
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] The provided reproduction is a minimal reproducible of the bug.
Hi, I need a reproduction repo to investigate. But the persistence outside of components should work because subscription is made in detached mode.
我遇到了同样的问题,在组件外使用 pinia store,无法持久化,放到 App.vue 中可以正常持久化。需要的话请见仓库 https://github.com/Zyunchao/vue3-base-admin ,见 router 模块。 @prazdevs
模块文件:https://github.com/Zyunchao/vue3-base-admin/blob/master/src/router/frontEnd.ts