Failed to execute ‘insertBefore‘ on ‘Node‘: The node before which the new node is to …报错
背景:在若依框架项目中,使用 v-if
+ v-hasPermi
报错
<el-button
v-if="hasClickEdit"
v-hasPermi="['device:topo:edit']"
>修改</el-button
>
解决:将 v-if
改为v-show
即可
<el-button
v-show="hasClickEdit"
v-hasPermi="['device:topo:edit']"
>修改</el-button
>