Commit 2f436d28 by kokoroli

fix:AdvancedForm.vue

parent 6e04b616
...@@ -139,8 +139,9 @@ export default { ...@@ -139,8 +139,9 @@ export default {
e.preventDefault() e.preventDefault()
}, },
newMember () { newMember () {
const length = this.data.length
this.data.push({ this.data.push({
key: '-1', key: (parseInt(this.data[length - 1].key) + 1).toString(),
name: '', name: '',
workId: '', workId: '',
department: '', department: '',
...@@ -205,4 +206,4 @@ export default { ...@@ -205,4 +206,4 @@ export default {
.card{ .card{
margin-bottom: 24px; margin-bottom: 24px;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment