fix: 复制场景会出现场景名称一样的情况

修复制场景会出现场景名称一样的情况的问题
This commit is contained in:
song.tianyang 2021-01-21 19:07:30 +08:00
parent d214bca4bc
commit ce7aa0e947
1 changed files with 4 additions and 3 deletions

View File

@ -463,9 +463,10 @@
}); });
}, },
copy(row) { copy(row) {
row.copy = true; let rowParam = JSON.parse(JSON.stringify(row));
row.name = 'copy_'+row.name; rowParam.copy = true;
this.$emit('edit', row); rowParam.name = 'copy_'+rowParam.name;
this.$emit('edit', rowParam);
}, },
showReport(row) { showReport(row) {
this.runVisible = true; this.runVisible = true;