From 850eb00ee5a7188ceacadbc93180396f7d171db7 Mon Sep 17 00:00:00 2001 From: 18229333266 Date: Sat, 2 Nov 2019 20:24:37 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=EF=BC=9A=E5=AF=B9=E5=AF=B9=E2=80=9C=E5=88=A0=E9=99=A4=E2=80=9D?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/List/BasicList.js | 5 ++++- src/utils/Authorized.js | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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