huminmin
2026-03-24 52df5ea2e61a5f466f7b356bcfb3cf77b4d2e8cc
src/directive/permission/hasRole.js
@@ -8,7 +8,7 @@
export default {
  mounted(el, binding, vnode) {
    const { value } = binding
    const super_admin = "admin";
    const super_admin = "admin"
    const roles = useUserStore().roles
    if (value && value instanceof Array && value.length > 0) {
@@ -22,7 +22,7 @@
        el.parentNode && el.parentNode.removeChild(el)
      }
    } else {
      throw new Error(`请设置角色权限标签值"`)
      throw new Error(`请设置角色权限标签值`)
    }
  }
}