mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
12 lines
287 B
JavaScript
12 lines
287 B
JavaScript
import permissionUtil from "../util.permission";
|
|
export default {
|
|
mounted(el, binding, vnode) {
|
|
const { value } = binding;
|
|
const hasPermission = permissionUtil.hasPermissions(value);
|
|
|
|
if (!hasPermission) {
|
|
el.parentNode && el.parentNode.removeChild(el);
|
|
}
|
|
}
|
|
};
|