下拉框选择的时候,选不上下拉框的值,element提供了@change事件使用vm.$forceUpdate() 方法进行强制刷新,就可以把值渲染上去。
$forceUpdate()
<el-select v-model="price" clearable placeholder="请选择"
@change="$forceUpdate()">
<el-option
v-for="(item, index) in menuList"
:key="index"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
这样就可以解决。