diff --git a/template/admin/src/utils/auth.js b/template/admin/src/utils/auth.js index ab0a7bcf9..7d071744d 100644 --- a/template/admin/src/utils/auth.js +++ b/template/admin/src/utils/auth.js @@ -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); + // } + // } }, }); },