element ui中多个el-switch组件在同一个表单中,需要将el-switch的属性v-model绑定在同一对象下的字段

不能有前后赋值的情况出现,不然会互相干扰!

res.data.userInfo.base_rule=res.data.base_rule
                that.dialog_table_data = res.data.userInfo
                // that.dialog_table_data.base_rule = res.data.base_rule

只能在前面进行调整后一起赋值才不会出问题

相关文章:

  • 2022-12-23
  • 2021-09-04
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2023-03-18
  • 2022-12-23
  • 2021-08-08
猜你喜欢
  • 2021-06-12
  • 2021-07-12
  • 2021-08-05
  • 2021-09-15
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案