data(){
return {
form: {
arr: [0, 1, 2]
}
}
}
this.form.arr[3] = 3;
how do I listen for changes in elements in arr?
I tried to use deep: true
did not work
add:
<el-form-item label="" prop="citys">
<el-cascader
placeholder=""
style="width: 100%"
:props="{
label: "name",
value: "id",
}"
:options="cityList"
v-model="form.citys"
></el-cascader>
</el-form-item>