|
|
@@ -19,15 +19,14 @@ export default {
|
|
|
async install(Vue, options) {
|
|
|
Vue.directive('auth', {
|
|
|
inserted(el, binding, vnode) {
|
|
|
- const { value } = binding;
|
|
|
- const access = store.state.userInfo.access;
|
|
|
-
|
|
|
- if (value && value instanceof Array && value.length && access && access.length) {
|
|
|
- const isPermission = includeArray(value, access);
|
|
|
- if (!isPermission) {
|
|
|
- el.parentNode && el.parentNode.removeChild(el);
|
|
|
- }
|
|
|
- }
|
|
|
+ // const { value } = binding;
|
|
|
+ // const access = store.state.userInfo.access;
|
|
|
+ // if (value && value instanceof Array && value.length && access && access.length) {
|
|
|
+ // const isPermission = includeArray(value, access);
|
|
|
+ // if (!isPermission) {
|
|
|
+ // el.parentNode && el.parentNode.removeChild(el);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
},
|
|
|
});
|
|
|
},
|