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