“NotFoundError: Failed to execute ‘insertBefore’ on ‘Node’: The node before which the new node is to be inserted is not a child of this nod” 记录vue报错
“NotFoundError: Failed to execute ‘insertBefore’ on ‘Node’: The node before which the new node is to be inserted is not a child of this nod” 记录vue报错
问题 : 有一天正式环境页面加载出现了该报错, 查询一番后发现问题描述是页面节点插入失效导致页面一直加载不出来.
解决方案:
方案1: 排查 将v-if 改为 v-show
方案2: 这是我另外的方法 查找一番以后发现和后端约定返回的字段他少返回来了 所以我将字段赋予默认值就解决了