mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2026-07-28 00:00:12 +08:00
删除magic-boot-ui(基于vue-element-admin vue2版本)
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
|
||||
const hasPermission = {
|
||||
install(Vue, options) {
|
||||
Vue.directive('permission', {
|
||||
bind(el, binding, vnode) {
|
||||
if (binding.value) {
|
||||
const permissionList = Vue.prototype.$authorities
|
||||
if (permissionList && permissionList.length && !permissionList.includes(binding.value) && process.env.NODE_ENV != 'preview') {
|
||||
el.style.display = 'none'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export default hasPermission
|
||||
Reference in New Issue
Block a user