控制台报错
You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array
<template>
<div>
<div v-for="(item,index) of dataLiat">
<input v-model="item" />
</div>
</div>
</template>
<script>
export default {
data(){
return {
dataLiat:[
{value:1},
{value:2},
{value:3},
],
}}}
</script>
改为如下即可解决
<div v-for="(item,index) of dataList">
<input v-model="dataList[index]" />
</div>