From 8452916491d8a67fb0ce6a2f30365b6ee1ac8e1e Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 14 Dec 2021 18:57:21 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E4=BF=AE=E6=94=B9=E5=88=A0?= =?UTF-8?q?=E9=99=A4chart=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/page/dashboard/panel.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/page/dashboard/panel.vue b/nezha-fronted/src/components/page/dashboard/panel.vue index 521c9f82c..13c8fdffa 100644 --- a/nezha-fronted/src/components/page/dashboard/panel.vue +++ b/nezha-fronted/src/components/page/dashboard/panel.vue @@ -471,6 +471,9 @@ export default { this.$message.error(response.msg) } }) + }).catch(() => { + this.chart = {} + this.$store.dispatch('clearPanel') }) }, delChartOk () { @@ -523,7 +526,7 @@ export default { this.filter.id = this.$refs.pickTime.$refs.timePicker.showTime.id this.getTableData() this.getData(this.filter) - this.$store.dispatch('dispatchPanelTime',{ + this.$store.dispatch('dispatchPanelTime', { time: this.searchTime, nowTimeType: this.nowTimeType }) @@ -766,7 +769,7 @@ export default { }, created () { this.getTableData() - this.$store.dispatch('dispatchPanelTime',{ + this.$store.dispatch('dispatchPanelTime', { time: this.searchTime, nowTimeType: { id: 4,