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

最新的create.js。store的状态不合并到data了。store.update()也不起作用了。 #50

Closed
xiong66 opened this issue Nov 5, 2018 · 5 comments

Comments

@xiong66
Copy link

xiong66 commented Nov 5, 2018

非页面调用store.update()没用了。
蓝廋。

@dntzhang
Copy link
Collaborator

dntzhang commented Nov 5, 2018

我看下

@dntzhang
Copy link
Collaborator

dntzhang commented Nov 5, 2018

@xiong66 必须组件或页面声明了的key才会合并上去,不是任意都会合并上去。必须声明了data,且update的path命中了 才会update

@dntzhang
Copy link
Collaborator

dntzhang commented Nov 5, 2018

所以你的组件必须声明 data

@dntzhang
Copy link
Collaborator

dntzhang commented Nov 5, 2018

或者 updateAll 设置成 true 无脑更新

@xiong66
Copy link
Author

xiong66 commented Nov 5, 2018

噢噢噢。对头了。

@dntzhang dntzhang closed this as completed Nov 5, 2018
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