朱杰
2021-06-11 ac3f9e5f33f0cc307c4de5f7220ecdfc2d98abeb
ruoyi-ui/src/directive/permission/index.js
对比新文件
@@ -0,0 +1,15 @@
import hasRole from './hasRole'
import hasPermi from './hasPermi'
const install = function(Vue) {
  Vue.directive('hasRole', hasRole)
  Vue.directive('hasPermi', hasPermi)
}
if (window.Vue) {
  window['hasRole'] = hasRole
  window['hasPermi'] = hasPermi
  Vue.use(install); // eslint-disable-line
}
export default install