最近开始使用vue3,发现有的时候会包插入节点错误
Failed to execute ‘insertBefore’ on ‘Node’: The node before which the new node is to be inserted is not a child of this node.
进过排查,发现是v-if的问题,数据改变了,v-if的判断随之改变,但是节点还没生成就在插入数据导致的,建议子组件少用v-if,会改变的最好不要用v-if
vue3报插入节点错误
于 2022-05-20 14:26:08 首次发布