diff --git a/src/routes/List/BasicList.js b/src/routes/List/BasicList.js index 78e8119..0865b42 100644 --- a/src/routes/List/BasicList.js +++ b/src/routes/List/BasicList.js @@ -19,6 +19,7 @@ import { import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import styles from './BasicList.less'; +import Authorized from '../../utils/Authorized'; const RadioButton = Radio.Button; const RadioGroup = Radio.Group; @@ -89,7 +90,9 @@ export default class BasicList extends PureComponent { 编辑 - 删除 + + 删除 + ); diff --git a/src/utils/Authorized.js b/src/utils/Authorized.js index ceb1161..db40817 100644 --- a/src/utils/Authorized.js +++ b/src/utils/Authorized.js @@ -1,6 +1,7 @@ import RenderAuthorized from '../components/Authorized'; import { getAuthority } from './authority'; +// 权限组件默认 export RenderAuthorized 函数,它接收当前权限作为参数,返回一个权限对象 let Authorized = RenderAuthorized(getAuthority()); // eslint-disable-line // Reload the rights component