plugin-access icon indicating copy to clipboard operation
plugin-access copied to clipboard

Umi plugin for access management.

Results 8 plugin-access issues
Sort by recently updated
recently updated
newest added

**Describe the bug** Access.tsx created in src/.umi/plugin-access does not have property 'children', which makes TypeScript create a warning. **Expected behavior** No warning is displayed. **Screenshots** ![image](https://user-images.githubusercontent.com/42210002/182182451-e92066e9-eec4-4efd-a7cb-5aaa6dde91d9.png) **Umi** - Version 3.5.0

开了项目源码发现子路由默认继承是父路由的 unaccessible 属性, 相关源码如下: ``` // 可能有打平 的事情发生,所以都执行一下 childRoutes.forEach(childRoute => { childRoute.unaccessible = !currentRouteAccessible; }); ``` 可是这样的代码逻辑会导致子路由失去自定义 unaccessible 的能力,所以我觉得代码是否应该改为: ``` childRoutes.forEach(childRoute => { childRoute.unaccessible = childRoute.unaccessible || !currentRouteAccessible; }); ```...

**Is your feature request related to a problem? Please describe.** When user logs in or logs out, access needs to be updated. **Describe the solution you'd like** A way to...

如題,使用這插件,對于不允許的路由會顯示 antd 的 403 Result組件的頁面。 請問有方法可以對它作出更改嗎?

函数组件可以通过 useAccess(),useModel()获取initialState,类组件如何获取initialState,可以提供个事例吗

//access.js 文件 export default function (initialState) { console.log('initialState', initialState); return { canReadGoods: initialState.roleId === 1 || initialState.roleId === 2 }; } // .umirc.ts 文件 routes: [ { path: '/', component:...