mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-20 10:16:40 +08:00
16 lines
325 B
JavaScript
16 lines
325 B
JavaScript
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
|