index.js 789 Bytes
Newer Older
耿迪迪's avatar
耿迪迪 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
/*
 * @Author: 纪泽龙 jizelong@qq.com
 * @Date: 2022-06-16 14:52:17
 * @LastEditors: 纪泽龙 jizelong@qq.com
 * @LastEditTime: 2022-06-21 15:35:20
 * @FilePath: /danger-manage-web/src/directive/permission/index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import hasRole from './hasRole'
import hasPermi from './hasPermi'
import unValue from './unValue'

const install = function(Vue) {
  Vue.directive('hasRole', hasRole)
  Vue.directive('hasPermi', hasPermi)
  Vue.directive('unValue', unValue)
}

if (window.Vue) {
  window['hasRole'] = hasRole
  window['hasPermi'] = hasPermi
  Vue.use(install); // eslint-disable-line
}

export default install