fix: duplicate图表时去掉一些参数

This commit is contained in:
chenjinsong
2021-05-24 17:46:21 +08:00
parent 556fe8eaae
commit 9f73a5eb33
2 changed files with 7 additions and 0 deletions

View File

@@ -1611,6 +1611,9 @@ export default {
if (chart) {
const copyChart = { ...chart }
delete copyChart.id
delete copyChart.pid
delete copyChart.varId
delete copyChart.varType
copyChart.name = 'Copy_' + copyChart.name
this.$emit('on-edit-chart', copyChart)
}
@@ -1619,6 +1622,9 @@ export default {
if (chart) {
const copyChart = { ...chart }
delete copyChart.id
delete copyChart.pid
delete copyChart.varId
delete copyChart.varType
copyChart.name = 'Copy_' + copyChart.name
this.$emit('on-edit-chart', copyChart)
}