The problem of dynamic Generation of list v-for Loop by vue

columnSetupArr:[]

newCustomTable:{
  columnName:"",
  columnDetail:"",
  isColumnTableVal:1  
}

/*add*/
this.form.columnSetupArr.push(this.newCustomTable);

<table class="projectTable">
              <tr v-for="(item,index) in form.columnSetupArr" v-if="index>=4">
                  <td>
                        <el-col :span="20">
                          <el-input style="width:120px" v-model="item.columnName"></el-input>
                        </el-col>
                    </td>  
                    <td>
                        <!-- <el-col :span="20">
                          <el-input style="width:120px" v-model="item.columnDetail"></el-input>
                        </el-col> -->
                            
                            <el-form-item label="">
                            <el-col :span="10">
                              <el-input v-model="item.columnDetail"></el-input>
                            </el-col>
                            </el-form-item>
                    </td>
                    <td>
                        <el-select v-model="item.isColumnTableVal" placeholder="">
                            <el-option
                                v-for="item in isnewCustomTableItemsOptions"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select> 
                    </td>
                    <td>
                         
                    </td>
                </tr>      
            </table>

Click the button to push an object in the array to dynamically generate a row of data from a table table, and then v-for to render the data.
because there is an input in each row that needs to be bound to the input, that is, the item.columnName = "item.columnName". The problem now is that after several item.columnName are generated, all the item.columnName are linked, that is, I modify the input in the first row and then the input value of the same v-model in the next few rows will also change. What should I do with this

Jan.11,2022

change it to the following

  

the subject is always the same object every time it is added to the array this.form.columnSetupArr . The object is of reference type, which, of course, leads to linkage.
upstairs is the right way. You can also use this.form.columnSetupArr.push (Object.assign ({}, this.newCustomTable) . In short, the problem is to solve the problem of referencing the same object.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3faab-2c4b6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3faab-2c4b6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?