19 lines
414 B
JavaScript
Executable File
19 lines
414 B
JavaScript
Executable File
/*
|
|
* @Author: your name
|
|
* @Date: 2020-05-21 19:47:42
|
|
* @LastEditTime: 2020-10-08 10:57:37
|
|
* @LastEditors: 王涛
|
|
* @Description: In User Settings Edit
|
|
* @FilePath: /sz-web-client/src/directive/permission/permission.js
|
|
*/
|
|
|
|
export default {
|
|
inserted(el, binding, vnode) {
|
|
if (binding.value) {
|
|
if (!binding.value.status) {
|
|
el.parentNode && el.parentNode.removeChild(el)
|
|
}
|
|
}
|
|
}
|
|
}
|