element ui中多个el-switch组件在同一个表单中
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
只能在前面进行调整后一起赋值才不会出问题
网站:http://shibowl.top
github:https://github.com/hanbinjxnc
博客园:https://www.cnblogs.com/hool
博客:https://blog.shibowl.top
淘宝店:https://boxunwl.taobao.com/
作者:世博 2019年4月28日
github:https://github.com/hanbinjxnc
博客园:https://www.cnblogs.com/hool
博客:https://blog.shibowl.top
淘宝店:https://boxunwl.taobao.com/
作者:世博 2019年4月28日