From d8bb552b5e5a0fd56d09b6704a92c01709e6a3eb Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 5 Jan 2023 15:30:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9C=B0=E5=9B=BE):=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=B8=BA0=E5=9C=A8=E6=8F=90=E7=A4=BA=E4=B8=AD=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=B1=95=E7=A4=BA=E5=87=BA=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/chart/map/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/chart/chart/map/map.js b/frontend/src/views/chart/chart/map/map.js index b721601414..b2ff1ef1fb 100644 --- a/frontend/src/views/chart/chart/map/map.js +++ b/frontend/src/views/chart/chart/map/map.js @@ -73,7 +73,7 @@ export function baseMapOption(chart_option, chart, themeStyle, curAreaCode, seri tooltip.formatter = params => { const a = params.seriesName const b = params.name - const c = params.value ? params.value : '' + const c = params.value ?? '' return text.replace(new RegExp('{a}', 'g'), a).replace(new RegExp('{b}', 'g'), b).replace(new RegExp('{c}', 'g'), c) } chart_option.tooltip = tooltip