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

请教一下,使用wx.redirectTo 跳转页面之后 update() 就不会更新视图了 #42

Closed
gexin1 opened this issue Nov 1, 2018 · 6 comments

Comments

@gexin1
Copy link

gexin1 commented Nov 1, 2018

No description provided.

@gexin1
Copy link
Author

gexin1 commented Nov 1, 2018

在a页面修改数据之后,
使用redirectTo跳转到b页面
b页面 store里边的数据是a页面修改过的
但是b页面没有更新视图
需要使用setDate重新更新视图吗 ?

@dntzhang
Copy link
Collaborator

dntzhang commented Nov 1, 2018

稍等,我试下 wx.redirectTo

@dntzhang
Copy link
Collaborator

dntzhang commented Nov 1, 2018

刚试了 wx.redirectTo 之后是可以 通过 this.update 更新视图的

@dntzhang dntzhang closed this as completed Nov 1, 2018
@dntzhang
Copy link
Collaborator

dntzhang commented Nov 1, 2018

你是不是忘记在 b 页面的 data 声明依赖了?

@gexin1
Copy link
Author

gexin1 commented Nov 1, 2018

wechatide://minicode/CDXOYAmb7F3v 请看下我的代码片段

@dntzhang
Copy link
Collaborator

dntzhang commented Nov 1, 2018

刚提交修复了。你拉去最新。多谢 @gexin1

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