fix:处理修改报错 未传入panelId
This commit is contained in:
@@ -701,7 +701,8 @@
|
|||||||
},
|
},
|
||||||
// 更新图表
|
// 更新图表
|
||||||
updateCharts(params) {
|
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) {
|
if (response2.code === 200) {
|
||||||
this.esc();
|
this.esc();
|
||||||
this.$message({duration: 1000, type: 'success', message: this.$t("tip.saveSuccess")});
|
this.$message({duration: 1000, type: 'success', message: this.$t("tip.saveSuccess")});
|
||||||
|
|||||||
Reference in New Issue
Block a user