diff --git a/src/directive/permission/hasPermi.js b/src/directive/permission/hasPermi.js index 500028519..7056e4a31 100644 --- a/src/directive/permission/hasPermi.js +++ b/src/directive/permission/hasPermi.js @@ -19,7 +19,7 @@ export default { }) if (!hasPermissions) { - el.parentNode && el.parentNode.removeChild(el) + el.parentNode && el.parentNode.remove(el) } } else { throw new Error(`请设置操作权限标签值`)