fix: duplicate图表时去掉一些参数
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user