NEZ-294 fix: 修复新增chart都加到第一个panel的bug

This commit is contained in:
chenjinsong
2020-06-03 20:52:52 +08:00
parent f163054d21
commit 294cc676a1

View File

@@ -597,7 +597,7 @@
addCharts(params) {
let panelId;
//先处理panel
if (this.showPanel&&this.showPanel.type) {
if (this.showPanel&&this.showPanel.type!="dashboard") {
panelId = this.panelData[0].id;
} else {
panelId = this.autocompleteExist(this.panelName2);