fix:修复panel 修改名称后,仍然显示旧名称的问题
This commit is contained in:
@@ -404,6 +404,7 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getTableData: function (clearShowPanel) {
|
getTableData: function (clearShowPanel) {
|
||||||
|
|
||||||
this.$get('panel?type=dashboard').then(response => {
|
this.$get('panel?type=dashboard').then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.panelData = response.data.list;
|
this.panelData = response.data.list;
|
||||||
@@ -421,6 +422,8 @@
|
|||||||
this.filter.panelId = this.showPanel.id;
|
this.filter.panelId = this.showPanel.id;
|
||||||
this.getData(this.filter);
|
this.getData(this.filter);
|
||||||
isInitData = true;
|
isInitData = true;
|
||||||
|
}else{
|
||||||
|
this.showPanel=response.data.list.find(item=>{return item.id == this.showPanel.id})
|
||||||
}
|
}
|
||||||
this.filter.panelId = this.showPanel.id;
|
this.filter.panelId = this.showPanel.id;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user