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

请问app.js可以使用吗? #59

Open
my6521 opened this issue Dec 30, 2024 · 1 comment
Open

请问app.js可以使用吗? #59

my6521 opened this issue Dec 30, 2024 · 1 comment

Comments

@my6521
Copy link

my6521 commented Dec 30, 2024

现在的情况是重载小程序后状态丢失,需要app.js启动的时候设置状态,请问有解决办法吗?

@LastLeaf
Copy link
Member

指的是在 App onLoad/onShow 里面修改 store 数据?直接在那里面改 store 就行了。

这个模块只是帮助将 mobx store 里面的数据放到页面/组件里面。 mobx store 本身可以按你的需求使用。

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

2 participants