From e4da22868d20ccaec2b345a3f4d7fca26431cca1 Mon Sep 17 00:00:00 2001 From: dmy Date: Wed, 4 Mar 2026 16:14:27 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E7=94=B5?= =?UTF-8?q?=E5=8E=8B=E4=BB=BD=E6=95=B0=E7=9B=B8=E5=85=B3=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webui/src/components/ParameterForm.vue | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/webui/src/components/ParameterForm.vue b/webui/src/components/ParameterForm.vue index 2787de5..d2b2c40 100644 --- a/webui/src/components/ParameterForm.vue +++ b/webui/src/components/ParameterForm.vue @@ -305,15 +305,6 @@
-
- - 将电压波形离散化的份数,即将交流电压在一个周期内的不同值进行计算。 - -
{ return params.parameter.rated_voltage.includes('±') ? 'DC' : 'AC' }) -// 监听电压等级变化,同步更新 ac_or_dc 和 voltage_n 字段 +// 监听电压等级变化,同步更新 ac_or_dc 字段 watch( () => params.parameter.rated_voltage, (newVoltage) => { const isDC = newVoltage.includes('±') params.parameter.ac_or_dc = isDC ? 'DC' : 'AC' - // DC 时电压份数为 1,AC 时为 3 - params.optional.voltage_n = isDC ? 1 : 3 }, { immediate: true } )