
























点击列表页的编辑按钮,在点击确定按钮提交修改前,修改某一条数据的值时,该条数据在列表页的值也会跟着改变。
在获取该条数据时,可以使用以下方法解决该问题:
this.bmixForm = JSON.parse(JSON.stringify(row))
<el-button size="mini" type="text" @click="editForm(data.row)">编辑</el-button>
async editForm(row) {
//this.bmixForm = row this.bmixForm = JSON.parse(JSON.stringify(row)) this.flag = "update" this.bmixFormVisible = true }
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。