index.js 758 Bytes
Newer Older
1 2 3 4 5 6 7 8
/*
 * @Author: your name
 * @Date: 2022-01-07 11:29:13
 * @LastEditTime: 2022-02-25 17:17:17
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /newDev/gassafety-progress/gassafetyprogress-web/src/directive/permission/index.js
 */
耿迪迪's avatar
耿迪迪 committed
9 10
import hasRole from './hasRole'
import hasPermi from './hasPermi'
11
import unValue from './unValue'
耿迪迪's avatar
耿迪迪 committed
12 13 14 15

const install = function(Vue) {
  Vue.directive('hasRole', hasRole)
  Vue.directive('hasPermi', hasPermi)
16
  Vue.directive('unValue', unValue)
耿迪迪's avatar
耿迪迪 committed
17 18 19 20 21 22 23 24 25
}

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

export default install