Commit 48208148 by zhaochengxiang

bug fix

parent a7ee8cc3
...@@ -110,20 +110,20 @@ const UpdateTreeItemModal = (props) => { ...@@ -110,20 +110,20 @@ const UpdateTreeItemModal = (props) => {
if (type === 'add' && values.action==='root') { if (type === 'add' && values.action==='root') {
payload = { payload = {
...values, ...values,
rangeList: (values.rangeList??'').replace(/[,,,_ ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '), rangeList: (values.rangeList??'').replace(/[,,, ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '),
parentId: rootId parentId: rootId
}; };
} else if (type === 'add') { } else if (type === 'add') {
payload = { payload = {
...values, ...values,
rangeList: (values.rangeList??'').replace(/[,,,_ ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '), rangeList: (values.rangeList??'').replace(/[,,, ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '),
parentId: item.id parentId: item.id
}; };
} else { } else {
payload = { payload = {
...item, ...item,
...values, ...values,
rangeList: (values.rangeList??'').replace(/[,,,_ ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '), rangeList: (values.rangeList??'').replace(/[,,, ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '),
} }
} }
......
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