Commit 2599d191 authored by 邓超's avatar 邓超

fix: 主页配置保存失败问题

parent ad47c71b
Pipeline #71226 passed with stages
...@@ -24,9 +24,9 @@ const HomeConfigModal = props => { ...@@ -24,9 +24,9 @@ const HomeConfigModal = props => {
let roleName = []; let roleName = [];
let roleId = []; let roleId = [];
const getArr = arr => { const getArr = arr => {
arr.forEach(item => { arr.roleGroups.forEach(item => {
if (item.roleGroups) { if (item.roleGroups) {
getArr(item.roleGroups); getArr(item);
} else if (item.isCheck) { } else if (item.isCheck) {
roleName.push(item.roleName); roleName.push(item.roleName);
roleId.push(item.roleId); roleId.push(item.roleId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment