diff --git a/web/client/src/sections/install/components/memberModal.jsx b/web/client/src/sections/install/components/memberModal.jsx index dc4c55e..7302c5d 100644 --- a/web/client/src/sections/install/components/memberModal.jsx +++ b/web/client/src/sections/install/components/memberModal.jsx @@ -57,7 +57,11 @@ function memberModal (props) { form.current .validate() .then((values) => { - dispatch(install.postOrganizationUser({ role: values.role, pepUserId: values.pepUserId })).then((res) => {//获取项企(PEP)全部部门及其下用户 + let roleArr=JSON.parse(JSON.stringify(values.role)) + if (roleArr.indexOf('admin') != -1) { + roleArr.splice(roleArr.indexOf('admin'),1) + } + dispatch(install.postOrganizationUser({ role: roleArr, pepUserId: values.pepUserId })).then((res) => {//获取项企(PEP)全部部门及其下用户 if(res.success){ close(); }