fix: 修改深拷贝失效的问题

This commit is contained in:
zhangyu
2021-12-08 15:15:18 +08:00
parent 0faf22e2f2
commit 1a124dbf8b
2 changed files with 2 additions and 2 deletions

View File

@@ -251,7 +251,7 @@ export default {
this.rightBox.chart.show = true
},
addChartByTemp () {
this.chart = Object.assign({}, this.blankChartTemp)
this.chart = JSON.parse(JSON.stringify(this.blankChartTemp))
this.chart.panelId = this.showPanel.id
if (this.from === fromRoute.endpoint) {
this.chart.varType = 2