From cef59796ecf6433c5b41d001e3df7acbc1c1d2ba Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Mon, 13 Jan 2025 19:06:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B0=B4=E6=B3=A2=E5=9B=BE=E6=8C=87=E6=A0=87=E6=98=AF=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=95=B0=E6=97=B6=EF=BC=8C=E5=A4=A7=E5=B0=8F=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=9C=80=E5=A4=A7=E6=9C=80=E5=B0=8F=E5=80=BC=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E9=80=89=E6=8B=A9=E5=8A=A8=E6=80=81=E5=80=BC=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/editor/editor-style/components/MiscSelector.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscSelector.vue index b8953f6b34..6bde11570a 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscSelector.vue @@ -118,7 +118,7 @@ const getFieldSummaryByDeType = (deType: number) => { const initDynamicDefaultField = () => { const yAxisField = props.chart.yAxis?.[0] const yAxisId = yAxisField?.id - if (quotaData.value?.length === 0 || yAxisField?.id === '-1') { + if (quotaData.value?.length === 0) { state.miscForm.liquidMaxType = 'fix' state.miscForm.liquidMaxField.id = '' state.miscForm.gaugeMaxType = 'fix' @@ -382,7 +382,6 @@ const addAxis = (form: AxisEditForm) => { changeMisc(maxValueKey + 'Field', false) } const changeChartType = () => { - const maxTypeKey = props.chart.type === 'liquid' ? 'liquidMaxType' : 'gaugeMaxType' const yAxisField = props.chart.yAxis?.[0] if (quotaData.value?.length === 0 || yAxisField?.id === '-1') { state.miscForm.liquidMaxType = 'fix'