5daff720a24a02479809bf23a0a2f02b8fc5267a.svn-base 284 B

12345678910111213
  1. import permission from './permission'
  2. const install = function(Vue) {
  3. Vue.directive('permission', permission)
  4. }
  5. if (window.Vue) {
  6. window['permission'] = permission
  7. Vue.use(install); // eslint-disable-line
  8. }
  9. permission.install = install
  10. export default permission