Commit 3d1bafd368ee4096d188db114398e64740f4a7a7
Merge branch 'fix/model-of-matter-identifer' into 'main_dev'
fix: 修复结构体标识符重复 See merge request yunteng/thingskit-front!695
Showing
1 changed file
with
1 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,6 @@ |
| 78 | 78 | createMessage.error('存在一致的标识符'); |
| 79 | 79 | return; |
| 80 | 80 | } |
| 81 | - | |
| 82 | 81 | emit('submit', unref(modalReceiveRecord).mode, cloneDeep(value)); |
| 83 | 82 | closeModal(); |
| 84 | 83 | } catch (error) {} | ... | ... |