🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@devmsg/umi-plugin-rbac

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devmsg/umi-plugin-rbac

rbac插件

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

@devmsg/umi-plugin-rbac

rbac权限管理模块抽离, 包含用户、角色、资源基础三部分

运行时配置

export const rbac: RuntimeConfig['rbac'] = {
  title: 'RBAC',
  logo: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg',
  getMenuData: async () => {
    const { success, data } = await request('/api/getMenus')
    return success ? data : [];
  },
  logout: async () => { },
}

后续只专注专注业务模块开发

server端在自建库中,后续单拎出来吧!

FAQs

Package last updated on 04 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts