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

数据管理 store中,是否可以增加插件注入的功能,如vuex一样。 #459

Open
Virczz opened this issue May 15, 2020 · 3 comments

Comments

@Virczz
Copy link

@Virczz Virczz commented May 15, 2020

之前的mpvue项目,用到了 vuex-persistedstate,用于保存用户的登录态。
现在我的实现是在 mutations和actions时 setStorage,在getters中getStorage。
可能项目中不需要持久存储所有的数据,那就希望可以通过在 state 中配置是否需要持久化,来实现

@hiyuki
Copy link
Contributor

@hiyuki hiyuki commented May 15, 2020

可以考虑,我调研一下

@jackrouse
Copy link

@jackrouse jackrouse commented Jun 5, 2020

如何全局监听store的更改,方便小程序调试,我想每次store有更改就能把store的状态打印出来,一直打console感觉好麻烦。

@ToPeas
Copy link
Collaborator

@ToPeas ToPeas commented Sep 16, 2020

如何全局监听store的更改,方便小程序调试,我想每次store有更改就能把store的状态打印出来,一直打console感觉好麻烦。

目前已经支持插件机制

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.