升级ui vue3版本

This commit is contained in:
吕金泽
2022-03-05 10:42:10 +08:00
parent 4b2134065e
commit 8b8095b91a
367 changed files with 135973 additions and 0 deletions
@@ -0,0 +1,17 @@
const hasPermission = {
install(app) {
app.directive('permission', {
beforeMount(el, binding) {
if (binding.value) {
const permissionList = app.config.globalProperties.$global.user.authorities
if (permissionList && permissionList.length && !permissionList.includes(binding.value) && import.meta.env.NODE_ENV != 'preview') {
el.style.display = 'none'
}
}
}
})
}
}
export default hasPermission