mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-10 12:04:38 +08:00
Update permission.js
这里直接删除节点在分页渲染的时候会报错
This commit is contained in:
parent
8851a68066
commit
bc7f4a3571
@ -14,7 +14,7 @@ export default{
|
||||
})
|
||||
|
||||
if (!hasPermission) {
|
||||
el.parentNode && el.parentNode.removeChild(el)
|
||||
el.style.display = 'none'
|
||||
}
|
||||
} else {
|
||||
throw new Error(`need roles! Like v-permission="['admin','editor']"`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user