From a84772ad109113ae11dc386ed48ad5a120054945 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 8 Nov 2021 10:19:35 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1195=20fix=EF=BC=9AChart=20Template=20?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E7=A9=BA=E7=99=BD=EF=BC=8Cchart=20=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/charts/chart-list.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index debb68b54..fe469667f 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -709,12 +709,16 @@ export default { } }) }) + this.finshGetData = false return } if (!param.query) delete param.query // 根据panelId获得panel下的所有图表 // const groupId = true ? '&groupId=0' : '' - if (!params.panelId) { return } // 没有panelId不调用接口 + if (!params.panelId) { + this.finshGetData = false + return + } // 没有panelId不调用接口 this.$get('visual/panel/chart?panelId=' + params.panelId + '&groupId=0' + '&pageSize=-1').then(response => { if (response.code === 200) { setTimeout(() => {