/**
 * 全局权限控制
 */
import { getButtonAuth } from '@/utils/authFilter'

export default {
  install(Vue) {
    Vue.mixin({
      methods: {
        isDisabledAuth(code) {
          return getButtonAuth(code)
        }
      }
    })
  }
}
