fix:修复panel 修改名称后,仍然显示旧名称的问题

This commit is contained in:
wangwenrui
2020-07-31 15:37:12 +08:00
parent f4001a3066
commit 4e8af2df33

View File

@@ -404,6 +404,7 @@
});
},
getTableData: function (clearShowPanel) {
this.$get('panel?type=dashboard').then(response => {
if (response.code === 200) {
this.panelData = response.data.list;
@@ -421,6 +422,8 @@
this.filter.panelId = this.showPanel.id;
this.getData(this.filter);
isInitData = true;
}else{
this.showPanel=response.data.list.find(item=>{return item.id == this.showPanel.id})
}
this.filter.panelId = this.showPanel.id;
} else {