You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
340 B
JavaScript
16 lines
340 B
JavaScript
5 years ago
|
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
|