2021-04-30 14:15:31 +08:00
|
|
|
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
|