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