再见亦是路人
2021-04-21 a4b71278c08336d243f8ca4e1c85684486cdb945
ruoyi-ui/src/directive/permission/index.js
@@ -1,15 +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
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