kokoroli 6 жил өмнө
parent
commit
2f436d28cf

+ 3 - 2
src/views/form/advancedForm/AdvancedForm.vue

@@ -139,8 +139,9 @@ export default {
       e.preventDefault()
     },
     newMember () {
+      const length = this.data.length
       this.data.push({
-        key: '-1',
+        key: (parseInt(this.data[length - 1].key) + 1).toString(),
         name: '',
         workId: '',
         department: '',
@@ -205,4 +206,4 @@ export default {
   .card{
     margin-bottom: 24px;
   }
-</style>
+</style>