<el-select v-model="forms.district_id" size="mini"  placeholder=""  @change="userDistricts" class="diredge-addres">
  <el-option
      v-for="item in options2"
      :key="item.id"
      :label="item.name"
      :value="item.id">
  </el-option>
</el-select>


 userDistricts (e) {
      this.$forceUpdate()
    },

原因

数据层次太多,render函数没有自动更新,需手动强制刷新(this.$forceUpdate)

方法

  1. 给select添加change事件,强制刷新。具体代码

相关文章:

  • 2021-09-10
  • 2022-12-23
  • 2021-12-15
  • 2021-04-25
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
相关资源
相似解决方案