Commit 13579cda authored by cellee's avatar cellee

Signed-off-by: cellee <893264950@qq.com>

parent d475cdd7
/*
* @Author: your name
* @Date: 2021-02-01 14:54:48
* @LastEditTime: 2021-02-22 16:54:18
* @LastEditTime: 2021-02-22 17:14:12
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \tostumi\src\components\Form\PdfUpload.tsx
......@@ -88,8 +88,12 @@ const PdfUpload: React.FC<PriceInputProps> = ({
// 抽取相同的属性合并
if (obj.length > 0) {
let filterValue = obj.filter((v: any) => {
return v.name == detailvalue[i].description;
return (
v.name == detailvalue[i].description &&
v.descriptionId == detailvalue[i].descriptionId
);
});
console.log(filterValue);
if (filterValue.length > 0) {
obj.forEach((n: any) => {
if (
......@@ -102,8 +106,6 @@ const PdfUpload: React.FC<PriceInputProps> = ({
status: 'done',
url: detailvalue[i].pdfUrl,
});
} else {
obj.push(item);
}
});
} else {
......
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