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()}`' 我写的,会错乱的。