mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-06 03:58:00 +08:00
14 lines
256 B
JavaScript
14 lines
256 B
JavaScript
import permissions from './permissions'
|
|
|
|
const install = function (Vue) {
|
|
Vue.directive('permissions', permissions)
|
|
}
|
|
|
|
if (window.Vue) {
|
|
window['permissions'] = permissions
|
|
Vue.use(install)
|
|
}
|
|
|
|
permissions.install = install
|
|
export default permissions
|