gaoluyang
2025-05-14 e7d8b280e4d9b0c0394f40ab56cbc37be57cb19b
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(`请设置角色权限标签值`)
    }
  }
}