From 8f56c0f666c0f59c49eaf6e0ca649590bb4f426e Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 8 Nov 2021 18:27:21 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1194=20fix:=20chart=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=A1=86=E6=89=93=E4=B8=8D=E5=BC=80=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/page/dashboard/panel.vue b/nezha-fronted/src/components/page/dashboard/panel.vue index 1d0aa0112..57b88e047 100644 --- a/nezha-fronted/src/components/page/dashboard/panel.vue +++ b/nezha-fronted/src/components/page/dashboard/panel.vue @@ -351,7 +351,7 @@ export default { const chartData = res.data.data // console.log(typeof chartData.param) if (typeof chartData.param === 'string') { - chartData.param = JSON.parse(chartData.param) + chartData.param = chartData.param ? JSON.parse(chartData.param) : {} } if (!chartData.param) { chartData.param = { url: '', threshold: '' }