gaoluyang
5 天以前 896fe9155c2a3cd54b0b7605a613ed7c8c9c0cfa
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(`请设置角色权限标签值`)
    }
  }
}