Please transfer a valid prop path to form item!

The main error is when setting prop for El form item

The name of the loop prop in El form item should be consistent with the name of the attribute in the form list, so as to ensure the consistency of components.

 

<template v-for="(person,index) in temp">
    <el-form-item prop="name">
        <el-input v-model="person.name"></el-input>
    </el-form-item>
    <el-button @click="removeDomain(index)" size="small">-</el-button>
</template>

Property value is person.name

prop=’name’

Read More: