From 7e8ad0eda61560af4bce0260c8d6787f3ada31e9 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 10 Dec 2024 17:53:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E5=9C=A8=E6=B2=A1=E6=9C=89=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=95=B4=E4=BD=93=E5=AD=97=E4=BD=93=E6=97=B6=EF=BC=8C=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=AD=97=E4=BD=93=E5=A4=A7=E5=B0=8F=E6=97=A0=E6=95=88?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/views/components/ChartComponentG2Plot.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue b/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue index ea58343445..d8f760a173 100644 --- a/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue +++ b/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue @@ -232,7 +232,7 @@ const renderChart = async (view, callback?) => { const chart = deepCopy({ ...defaultsDeep(view, cloneDeep(BASE_VIEW_CONFIG)), data: chartData.value, - fontFamily: props.fontFamily + ...(props.fontFamily && props.fontFamily !== 'inherit' ? { fontFamily: props.fontFamily } : {}) }) const chartView = chartViewManager.getChartView(view.render, view.type) recursionTransObj(customAttrTrans, chart.customAttr, scale.value, terminal.value)