Browse Source

弹框修改

dev
deartibers 2 years ago
parent
commit
7901b7ba39
  1. 6
      web/client/src/sections/install/components/memberModal.jsx

6
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();
}

Loading…
Cancel
Save