fix:处理修改报错 未传入panelId

This commit is contained in:
zhangyu
2020-10-20 16:52:27 +08:00
parent 922f6efafa
commit 70a55f93c2

View File

@@ -701,7 +701,8 @@
},
// 更新图表
updateCharts(params) {
this.$put('panel/' + this.panelId + '/charts', params ? params : this.editChart).then(response2 => {
let panelId=this.panelId?this.panelId:this.chart.panelId;
this.$put('panel/' + panelId + '/charts', params ? params : this.editChart).then(response2 => {
if (response2.code === 200) {
this.esc();
this.$message({duration: 1000, type: 'success', message: this.$t("tip.saveSuccess")});