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

父组件的data数据改变了,但是传给子组件的数据没有变化,这个如何排查呢?没有思路啊 #223

Open
nymlc opened this issue Sep 5, 2018 · 2 comments

Comments

@nymlc
Copy link

nymlc commented Sep 5, 2018

No description provided.

@leeluolee
Copy link
Member

@nymlc 给个Example吧

@nymlc
Copy link
Author

nymlc commented Sep 5, 2018

@leeluolee 诡异的是给不了啊。因为从来没碰见过这个问题,也就是在一个很大的项目上才发现的。大致是App(根组件)->panel(左会话列表)+content(右内容区)。将App的data传递给panel与content组件,APP是变化了的,子组件未变化。这个还是通过在各个组件init里把this挂载到window上打印出来发现的。
Example给不了呀,所以很苦恼。因为都ok得。这个还是点击其中panel下某个特定的会话才导致的。
所以想问问大佬有什么好的方法排查呢。
ps:组件传递的数据很大,大约有几十个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants