Commit 298a064cb30dbf0bd44d0ed4e52b24171825c3bd

Authored by ww
1 parent 4aba0a50

fix: 修复结构体标识符重复

... ... @@ -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) {}
... ...