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

重新进入某个页面,怎样重置数据到初始值? #15

Open
zsodur opened this issue Sep 28, 2018 · 3 comments
Open

重新进入某个页面,怎样重置数据到初始值? #15

zsodur opened this issue Sep 28, 2018 · 3 comments

Comments

@zsodur
Copy link

zsodur commented Sep 28, 2018

No description provided.

@dntzhang
Copy link
Collaborator

onShow 的时候设置一下 store 的数据?

@zwmmm
Copy link
Contributor

zwmmm commented Sep 30, 2018

其实可以在store中创建一个reset函数 用来重置对应的store 然后视情况而定在onShow中使用还是在onUnload,

@dntzhang
Copy link
Collaborator

@zwmmm 对,赞

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

3 participants