From dc5cb5be014857482f00a882fd94d9366d27e34e Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 22 Jul 2024 20:05:31 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E6=9F=B1?= =?UTF-8?q?=E7=8A=B6=E5=9B=BE=E7=AD=89=E6=A0=87=E7=AD=BE=E8=B7=9F=E9=9A=8F?= =?UTF-8?q?=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor/editor-style/components/LabelSelector.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue index 855ed8f04a..88935663bb 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue @@ -85,11 +85,12 @@ const initSeriesLabel = () => { return } let initFlag = false + const themeColor = dvMainStore.canvasStyleData.dashboard.themeColor const axisMap = yAxis.value.reduce((pre, next) => { let tmp = { ...next, show: true, - color: props.themes === 'dark' ? '#fff' : '#000', + color: themeColor === 'dark' ? '#fff' : '#000', fontSize: COMPUTED_DEFAULT_LABEL.value.fontSize, showExtremum: false } as SeriesFormatter