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

为什么在nextTick的回调里取不到v-for的遍历的dom #70

Open
aloneWang opened this issue Mar 21, 2018 · 3 comments
Open

为什么在nextTick的回调里取不到v-for的遍历的dom #70

aloneWang opened this issue Mar 21, 2018 · 3 comments

Comments

@aloneWang
Copy link

aloneWang commented Mar 21, 2018

数据是从store.getters中的拿的,视图上是已经渲染出来,为什么拿不到v-for遍历的dom?希望作者告知一下。感激!
1
2

这里console.log(lists)是undefined

3
4

@aloneWang aloneWang reopened this Mar 21, 2018
@lalayouchou
Copy link

我也是这样,有解决方案嘛

@lalayouchou
Copy link

我解决了,使用updated()

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
@aloneWang @lalayouchou and others