ErrorError in nextTick: "TypeError: Cannot read properties of undefined (reading 'nodeName')" in nextTick: "TypeError: Cannot read properties of undefined (reading 'nodeName')"

Error in nextTick: "TypeError: Cannot read properties of undefined (reading 'nodeName')"

 

 

当遇见这种问题时,可以先排查 v-for 循环中的key 值是否写的合理  :

:key='`${index}-${Math.random()}`'  我写的,会错乱的。
posted @ 2023-02-14 15:08  张小中  阅读(318)  评论(0编辑  收藏  举报