Showing
1 changed file
with
2 additions
and
2 deletions
| ... | ... | @@ -60,7 +60,7 @@ |
| 60 | 60 | }); |
| 61 | 61 | |
| 62 | 62 | const validateRepeat = (value: StructRecord, valueList: StructRecord[]) => { |
| 63 | - return valueList.filter((item) => item.identifier === value.identifier).length > 1; | |
| 63 | + return valueList.filter((item) => item.identifier === value.identifier).length >= 1; | |
| 64 | 64 | }; |
| 65 | 65 | |
| 66 | 66 | const handleSubmit = async () => { |
| ... | ... | @@ -78,7 +78,7 @@ |
| 78 | 78 | createMessage.error('存在一致的标识符'); |
| 79 | 79 | return; |
| 80 | 80 | } |
| 81 | - | |
| 81 | + console.log({ value, valueList: props.valueList }); | |
| 82 | 82 | emit('submit', unref(modalReceiveRecord).mode, cloneDeep(value)); |
| 83 | 83 | closeModal(); |
| 84 | 84 | } catch (error) {} | ... | ... |