Ver Fonte

bug修复

iZaiZaiA há 2 anos atrás
pai
commit
c13b120a0b
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      src/views/ledger/components/table-form.vue

+ 4 - 1
src/views/ledger/components/table-form.vue

@@ -519,7 +519,10 @@ const copyTableFormClick = () => {
     const formLog = formLogDataList.value
     const logIndex = formLogIndex.value
     const defaultData = setFormDefaultData(formLog[logIndex])
-    formLogDataList.value.push(defaultData)
+    formLogDataList.value.push({
+        ...defaultData,
+        id: ''
+    })
     const index = formLogDataList.value.length - 1
     getBussDataInfo(index)
 }