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

这种现象是正常现象吗? #25

Closed
zjy2931 opened this issue Oct 8, 2018 · 11 comments
Closed

这种现象是正常现象吗? #25

zjy2931 opened this issue Oct 8, 2018 · 11 comments

Comments

@zjy2931
Copy link

zjy2931 commented Oct 8, 2018

原来的data 有一项 userInfo

我通过 store.data = new_data
new data 有一项 userInfo

通过update更新后
数据结构变成 这样

diff并没有把userInfo更新成空,而是把其中的每个属性都变成空了,我觉得这样逻辑是不对的,使用起来也有问题

@dntzhang
Copy link
Collaborator

dntzhang commented Oct 8, 2018

正在修

@zjy2931
Copy link
Author

zjy2931 commented Oct 8, 2018

这个 参考一下其他人的 json diff 应该会少很多坑

@zjy2931
Copy link
Author

zjy2931 commented Oct 8, 2018

反正我不懂,等大佬更新 =-

@dntzhang
Copy link
Collaborator

dntzhang commented Oct 8, 2018

@zjy2931 已经没坑了~~~

@zjy2931
Copy link
Author

zjy2931 commented Oct 8, 2018

@zjy2931
Copy link
Author

zjy2931 commented Oct 8, 2018

这样就出新的问题了。。。。
···
this.update()

方法会报错

@zjy2931
Copy link
Author

zjy2931 commented Oct 8, 2018

@dntzhang
Copy link
Collaborator

dntzhang commented Oct 8, 2018

...,等我吃完饭回去看下。setdata传了空path

@zjy2931
Copy link
Author

zjy2931 commented Oct 8, 2018

dntzhang added a commit that referenced this issue Oct 8, 2018
@dntzhang
Copy link
Collaborator

dntzhang commented Oct 8, 2018

@zjy2931 改好了~~

@zjy2931
Copy link
Author

zjy2931 commented Oct 9, 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