The assignment is not displayed when editing the echo of the select component of iview

when the select component of iview edits the echo, the assignment does not show


<Select style="width:170px" v-model="editorform.pest_id" filterable  clearable>
 <Option v-for="item in editorform.pestType" :value="item.value" :key="item.value">{{ item.label }}</Option>
</Select>

js:
this.editorform.pest_id =l.pest_id;

clipboard.png

Oct.05,2021

I have also encountered this problem. When you choose more than one, it will not be echoed. Have you solved it?


me, too. That's how I say
, but it still doesn't work

.
                        <select class="address-select"   v-model="prov">
                            <option disabled value=""></option>
                            <option v-for="option in arr" :value="option.name" >
                                {{ option.name }}
                            </option>
                        </select>

1. Check whether editorform.pest_id is congruent value
2. Update manually using the $set method

this.$set(this.editorform,"pest_id",l.pest_id);
Just update the

vue.js version to the latest!


have you solved it

Menu