From aed5c5e3cbf83d97bbe81a4eef5cec2806550475 Mon Sep 17 00:00:00 2001 From: dmy Date: Wed, 4 Mar 2026 16:28:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=BA=E5=88=B6=E5=B0=86=E7=94=B5?= =?UTF-8?q?=E5=8E=8B=E4=BB=BD=E6=95=B0=E8=AE=BE=E7=BD=AE=E4=B8=BA1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webui/src/components/ParameterForm.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webui/src/components/ParameterForm.vue b/webui/src/components/ParameterForm.vue index 6aef34d..ffe4dc3 100644 --- a/webui/src/components/ParameterForm.vue +++ b/webui/src/components/ParameterForm.vue @@ -632,7 +632,10 @@ const calculate = async () => { const paramsWithAnimation = { parameter: toRaw(rawParams.parameter), advance: toRaw(rawParams.advance), - optional: toRaw(rawParams.optional), + optional: { + ...toRaw(rawParams.optional), + voltage_n: 1 // 强制将电压份数设置为1 + }, animation_enabled: animationRef.value?.isEnabled() ?? false } await window.pywebview.api.calculate(paramsWithAnimation)