fix:复制时删除form.id
This commit is contained in:
parent
c52648a4d3
commit
8db8638e15
|
|
@ -354,6 +354,9 @@ export default {
|
||||||
//表单注入数据
|
//表单注入数据
|
||||||
setData(data) {
|
setData(data) {
|
||||||
Object.assign(this.form, data);
|
Object.assign(this.form, data);
|
||||||
|
if(this.mode == 'add'){
|
||||||
|
delete this.form.id;
|
||||||
|
}
|
||||||
this.brothers = data.brothers;
|
this.brothers = data.brothers;
|
||||||
let arr = [];
|
let arr = [];
|
||||||
for (let key in data.components) {
|
for (let key in data.components) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue