Commit a2ed2662 by zhaochengxiang

word导入字段重复优化

parent 15af1b0f
......@@ -75,10 +75,10 @@ const EditModel = (props) => {
(attrs||[]).forEach(item => {
names.push(item.name||'');
if (nameCountMap.name) {
nameCountMap.name++;
if (nameCountMap[item.name]) {
nameCountMap[item.name]++;
} else {
nameCountMap.name = 1;
nameCountMap[item.name] = 1;
}
})
......
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