lishenao
10 天以前 fde27654b1b21a8d2c149d3d12f86c3c7314c091
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(`请设置角色权限标签值`)
    }
  }
}