下拉框时循环接口来的。数据层嵌套的太多了,所以显示的地方没有及时更新。我们写个强制更新就行了
<template>
<el-select v-model="value" filterable placeholder="请选择" @change="update()">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</template>
update(){
this.$forceUpdate()
}