Commit b18d88a7 authored by 李腾's avatar 李腾

feat: 完善新建账户逻辑

parent 850ed712
...@@ -140,10 +140,11 @@ const AddUser = props => { ...@@ -140,10 +140,11 @@ const AddUser = props => {
console.log(fieldsValue); console.log(fieldsValue);
const { organizationId } = fieldsValue; const { organizationId } = fieldsValue;
const { orgId } = userInfo; const { orgId } = userInfo;
const code = UUID.createUUID();
const params = { const params = {
...fieldsValue, ...fieldsValue,
code: UUID.createUUID(), code,
email: `${orgId.substring(0, 8)}@stms.quantgroup.cn`, email: `${code}@stms.quantgroup.cn`,
organization: { organization: {
id: organizationId || orgId, id: organizationId || orgId,
}, },
......
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