From 2ff464f30d94235b3ad04475593b75a74a354de9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 09 四月 2020 19:04:01 +0800 Subject: [PATCH] 2020-04-09 --- src/templates/formtabconfig/index.jsx | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/templates/formtabconfig/index.jsx b/src/templates/formtabconfig/index.jsx index 4a905f6..f38b376 100644 --- a/src/templates/formtabconfig/index.jsx +++ b/src/templates/formtabconfig/index.jsx @@ -477,8 +477,8 @@ } let roleList = [] - if (menu.roleList && menu.roleList.length > 0) { - roleList = menu.roleList.map(role => { + if (this.props.sysRoles && this.props.sysRoles.length > 0) { + roleList = this.props.sysRoles.map(role => { return { uuid: role.uuid, field: role.value, @@ -2306,6 +2306,7 @@ const mapStateToProps = (state) => { return { + sysRoles: state.sysRoles, permFuncField: state.permFuncField } } -- Gitblit v1.8.0